Handling Grouping and Sorting Programmatically

You learned how to manually group and sort records in a report in Chapter 6, “Exploring Reports.” Wouldn’t it be nice to be able to group and sort on the fly? Having this functionality enables you to see what the report looks like before you go to the trouble of manually setting the grouping and sorting levels permanently in the report. Or, you can use the on-the-fly functionality to preview the report before printing it to see if the groups and sorting levels are satisfactory. Just press a button, and you see the results immediately.

Before you attempt to programmatically create a group level on which to group or sort in your report, you need to determine which group levels already exist. Otherwise, ...

Get Access 2002 Programming by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.