WebDocumentViewerConfigurationBuilder.DisableCachedDocumentSource() Method
Disables the CachedDocumentSource component usage in the Web Document Viewer.
Namespace: DevExpress.AspNetCore.Reporting
Assembly: DevExpress.AspNetCore.Reporting.v24.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 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.