Hi Julian,
This is really a follow up to a previous question about selecting the contents of group bands (https://www.wpcubed.com/forum/viewtopic.php?t=1244).
Basically, what I am trying to do is give the users a simple list report, and then give them the option of grouping the report on their choice of fields.
e.g. the default report will be
and they can select a couple of fields to group the data on, and my code then needs to auto-format the report like this...
Header
<DATA GROUP BAND>
Group Field 1 Header
<GROUP FIELD 1>
Group Field 2 Header
<GROUP FIELD 2>
Record Fields
</GROUP FIELD 2>
Group Field 2 Footer
</GROUP FIELD1>
Group Field 1 Footer
<DATA GROUP BAND>
Footer
Alles anzeigen
I have written a test app which attempts to do this and is 90% of the way where, but I just need a little more help.
I have emailed the sample app to "support@wptools.de" and I am more than happy for anyone else to have a copy of the source code if it helps. There are also a number of useful utility routines for TWPRichText and TWPSuperMerge in there.
The point I am stuck at now is that I need the ability to remove the contents of a group band, but not the band itself.
The problem is commented in the "InsertAutoGroup" routine in "uReportFuncs.pas".
Thanks in advance,
Hedley Muscroft
Pioneer Software