Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

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