Is there a way of changing the Group Variable at run time? I may initially
set the variable linked to one datafield and at runtime, may want to change
the Group variable to link to a different datafield. Also, is there a way
of moving a Group up or down at runtime?
Comments
Although it is probably not a good idea to change the group breaking
variable while the report is generating, you can try changing the
TppGroup.BreakName and TppGroup.BreakType to do so. This may however end up
confusing the engine during generation and not give you the output you
expect. I would suggest making these changes before calling Report.Print.
The groups are kept in the TppReport.Groups list to keep their order. You
can move/delete/add groups to this list using the TppReport.AddGroup,
TppReport.MoveGroup, TppReport.RemoveGroup methods.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com