This demo illustrates the simplest way to create a master-detail report in a single report class.
To do this, you can use the DetailReport bands instead of employing the XRSubreport controls.
The resulting report represents data from a Northwind database. It consists of three levels of information on products and their suppliers, with the product orders grouped by their prices.
In addition, this demo illustrates how to cache large report documents. When a page within a ReportViewer is loaded, a report document is still being created, while its first page is already shown. Once the document is created, it is saved to a Page.Session object using the ReportViewer.CacheReportDocument event.
Afterwards, to obtain the report document (e.g. when navigating to another report page), it is restored from a Session using the ReportViewer.RestoreReportDocumentFromCache event.
Other ways of caching report documents are illustrated in the Document Map and Report Caching demos of the Web-specific Features section.