Skip to main content

DefaultWebDocumentViewerContainer.DisableCachedDocumentSource() Method

Disables the CachedDocumentSource component usage in the Web Document Viewer.

Namespace: DevExpress.XtraReports.Web.WebDocumentViewer

Assembly: DevExpress.XtraReports.v24.2.Web.dll

NuGet Package: DevExpress.Web.Reporting.Common

Declaration

public static void DisableCachedDocumentSource()

Remarks

The Web Document Viewer uses the CachedDocumentSource component to cache a document. This increases rendering performance.

The DisableCachedDocumentSource method should only be used if you encounters limitations that are critical to the application. Such limitations may occur because services and events that are designed to affect the generated document, such as the PageInfoDataProviderBase service and the PrintingSystemBase.XlSheetCreated event, do not function. The reason for this is that the XtraReport instance passed to the Web Document Viewer is disposed of while the document is cached. In this situation, call the DisableCachedDocumentSource method at application startup to disable caching.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DisableCachedDocumentSource() method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also