How do I disable a especific group? I put the property visible for false, but it didn't disable the group, just don't show. I need disable a group in run-time that was created in design.
The Group.OnGetBreakValue event can be used to control when the group breaks. If you want the group to never break, then return a constant value.
Another option might be to call Group.Free. However you need to do this prior to report generation. You could perhaps use the Report.OnInitializeParameters or BeforeOpenDataPipelines event.
-- Nard Moseley Digital Metaphors www.digital-metaphors.com
Best regards,
Nard Moseley Digital Metaphors www.digital-metaphors.com
Calling Group.Free on teh BeforeOpenDataPipelines even cause an Access Violation but it seems to work fine if called from the Report.OnInitializeParameters event.
What is the best and recommended approach to removing a Group?
Comments
The Group.OnGetBreakValue event can be used to control when the group
breaks. If you want the group to never break, then return a constant value.
Another option might be to call Group.Free. However you need to do this
prior to report generation. You could perhaps use the
Report.OnInitializeParameters or BeforeOpenDataPipelines event.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Violation but it seems to work fine if called from the
Report.OnInitializeParameters event.
What is the best and recommended approach to removing a Group?
Thanks,
Scott
use that. It's a timing issue.
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com