Back to Devexpress

WebDocumentViewerConfigurationBuilder.UseCachedReportSourceBuilder() Method

xtrareports-devexpress-dot-aspnetcore-dot-reporting-dot-webdocumentviewerconfigurationbuilder-faca7e4e.md

latest5.3 KB
Original Source

WebDocumentViewerConfigurationBuilder.UseCachedReportSourceBuilder() Method

Forces reporting components to use the cached report source.

Namespace : DevExpress.AspNetCore.Reporting

Assembly : DevExpress.AspNetCore.Reporting.v25.2.dll

NuGet Package : DevExpress.AspNetCore.Reporting

Declaration

csharp
public WebDocumentViewerConfigurationBuilder UseCachedReportSourceBuilder()
vb
Public Function UseCachedReportSourceBuilder As WebDocumentViewerConfigurationBuilder

Returns

TypeDescription
WebDocumentViewerConfigurationBuilder

A WebDocumentViewerConfigurationBuilder that can be used to further configure the Web Document Viewer services.

|

Remarks

Call this method at application startup to force the Document Viewer and the Report Designer Preview to use the cached report source.

View Example: ASP.NET Core Reporting - Best Practices - Optimize Memory Consumption)

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.

Review the following help topics for more information:

The following code snippets (auto-collected from DevExpress Examples) contain references 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.

reporting-asp-net-core-drill-through/CS/Startup.cs#L31

csharp
configurator.ConfigureWebDocumentViewer(viewerConfigurator => {
    viewerConfigurator.UseCachedReportSourceBuilder();
});

reporting-web-register-types-for-object-data-source-wizard/CS/ASPNetCore/ASPNetCore/Startup.cs#L42

csharp
configurator.ConfigureWebDocumentViewer(viewerConfigurator => {
    viewerConfigurator.UseCachedReportSourceBuilder();
});

reporting-asp-net-core-custom-parameter-editor/CS/CustomParameterEditorAspNetCoreExample/Startup.cs#L39

csharp
configurator.ConfigureWebDocumentViewer(viewerConfigurator => {
    viewerConfigurator.UseCachedReportSourceBuilder();
});

reporting-asp-net-core-custom-function-expression-editor/CS/CustomFunctionInExpressionAspNetCore/Startup.cs#L38

csharp
configurator.ConfigureWebDocumentViewer(viewerConfigurator => {
    viewerConfigurator.UseCachedReportSourceBuilder();
});

angular-reporting-handle-parameters-initialized-event/CS/ReportingWebApp/Startup.cs#L36

csharp
configurator.ConfigureWebDocumentViewer(viewerConfigurator => {
    viewerConfigurator.UseCachedReportSourceBuilder();
});

See Also

WebDocumentViewerConfigurationBuilder Class

WebDocumentViewerConfigurationBuilder Members

DevExpress.AspNetCore.Reporting Namespace