DefaultWebDocumentViewerContainer.UseCachedReportSourceBuilder() Method
Forces reporting components to use the CachedReportSourceWeb instance as the report source.
Namespace: DevExpress.XtraReports.Web.WebDocumentViewer
Assembly: DevExpress.XtraReports.v24.1.Web.dll
NuGet Package: DevExpress.Web.Reporting.Common
Declaration
Remarks
This method addresses errors that intermittently occur when the Document Viewer and the Report Designer’s Preview operate in a clustered hosting environment. These errors occur when a user request is handled by an application instance that has no access to documents or reports created earlier.
Call this method to force the Document Viewer and the Report Designer’s Preview to use the CachedReportSourceWeb instance as the report source.
using DevExpress.XtraReports.Web.WebDocumentViewer;
// ...
protected void Application_Start(object sender, System.EventArgs e) {
// ...
DefaultWebDocumentViewerContainer.UseCachedReportSourceBuilder();
}
Review the following help topics for more information:
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the UseCachedReportSourceBuilder() 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.