This demo guides you through the simplest way of creating a master-detail report in a single report class. To that end, use the Detail Report bands instead of employing the XRSubreport controls.
The resulting report (a compilation of data from the Northwind database) will consist of three levels of information on products and their suppliers, with the product orders grouped by price.
In addition, this demo illustrates how to cache large report documents. When a page within a Document Viewer is loaded, a report document is still being created while its first page is already displayed. Once the document is created, it is saved to a Page.Session object using the CacheReportDocument event.
To obtain the report document afterwards (e.g., when navigating to another report page), it must be restored from a Session using the RestoreReportDocumentFromCache event.
Alternate ways of caching report documents are illustrated in the Report Caching demo of the Web-specific Features section.