WebDocumentViewerConfigurationBuilder.DisableCachedDocumentSource() Method
Disables built-in document caching for the WebDocumentViewer.
Namespace: DevExpress.AspNetCore.Reporting
Assembly: DevExpress.AspNetCore.Reporting.v22.2.dll
NuGet Package: DevExpress.AspNetCore.Reporting
Declaration
Returns
Type | Description |
---|---|
WebDocumentViewerConfigurationBuilder | A WebDocumentViewerConfigurationBuilder that can be used to further configure the Web Document Viewer services. |
Remarks
The WebDocumentViewer uses the CachedDocumentSource component to store the document and improve document render performance. An XtraReport instance (passed to the WebDocumentViewer’s Bind method) is disposed of, so any services or events that affect the export result (the PageInfoDataProviderBase service and PrintingSystemBase.XlSheetCreated event) are detached from the report and do not affect the generated document.
Call the DefaultWebDocumentViewerContainer.DisableCachedDocumentSource method at application startup to disable caching and enable the Printing System services and events.