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

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

public WebDocumentViewerConfigurationBuilder DisableCachedDocumentSource()

#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.

See Also