Skip to Content
0
Former Member
Jun 11, 2009 at 09:17 PM

Dynamic Number of Groups (add/remove groups)

28 Views

I haven't found a good reference for the functionality I'm looking for. I have a need to group my report by up to 6 levels. The user could choose less than 6 levels, which means I have to remove levels from the display.

I'm changing my query to only pull back the data to the scope requested. This is to optimize performance. Because of this I can't simply suppress group levels, because there is no data to group on. Is there a way to completely remove groups programmatically? Or could I start with 0 groups and programmatically add them?

At this point I'd be stuck always pulling back the lowest level of detail, and suppressing groups. This does not perform well.

I'm using Crystal Reports version 10.5 that comes with VS 2008 professional.

Thanks

-Brian