DefaultWebDocumentViewerContainer.UseCachedReportSourceBuilder() Method

Forces reporting components to use the CachedReportSourceWeb instance as the report source.

Namespace: DevExpress.XtraReports.Web.WebDocumentViewer

Assembly: DevExpress.XtraReports.v20.2.Web.dll

Declaration

public static void UseCachedReportSourceBuilder()

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();
}
NOTE

The complete sample project How to Use Reporting Controls in a Clustered Web Environment (Web Farms or Web Garden). is available in the DevExpress Examples repository.

Review the following help topics for more information:

See Also