Free Trial Buy Now

Web-specific Features - Report Caching

Choose a dictionary:
v
Display the search window
Print the report
Print the current page
First Page
Previous Page
Page
v
of
Next Page
Last Page
Export a report and save it to the disk
Export a report and show it in a new window
v
Display the search window
Print the report
Print the current page
First Page
Previous Page
Page
v
of
Next Page
Last Page
Export a report and save it to the disk
Export a report and show it in a new window
v

Description

This demo illustrates how to cache a large report document using a unique key, and then restore this document from the cache, when necessary. Unlike the Master-Detail Report demo from the Report Types section and the Document Map demo from the Web-specific Features section, this demo illustrates a more complex approach to caching documents.

When this application starts, report documents for all dictionaries (English.txt, German.txt and Italian.txt in the App_Data/Dictionaries directory) are generated in a separate thread, and then saved to a file on the disk.

NOTE: You can find this code in the Global.asax and CacheReportHelper.cs(vb) files.

Then, when a report document needs to be obtained (e.g. when a page within a ReportViewer is initially displayed, or when navigating to another report page), it is restored from a file on the disk using the ReportViewer.RestoreReportDocumentFromCache event.

Version: v2012 vol 2.8
Experience the DevExpress Difference Today
Demos with source code are included with an installation of DevExpress controls for ASP.NET. Refer to the Demos and Sample Applications topic to learn more.
To download your free evaluation copy of our award-winning ASP.NET libraries, visit the Downloads page
All DevExpress ASP.NET Controls ship as part of DXperience ASP.NET, Enterprise, and Universal.
To obtain pricing information, visit the Pricing Options page or contact us via Email at info@devexpress.com
or by telephone at +1 (818) 844-3383 between 8:30am and 5pm Pacific Time.