Back to Devexpress

WebDocumentViewerConfigurationBuilder.EnablePassingExportOptionsPasswordsToClient() Method

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

latest3.1 KB
Original Source

WebDocumentViewerConfigurationBuilder.EnablePassingExportOptionsPasswordsToClient() Method

SECURITY-RELATED CONSIDERATIONS

For security reasons, PDF/Excel passwords specified in the Report Designer are not exposed in the Web Document Viewer. Read the following topic for details: Protect Sensitive Information.

Allows you to pass PDF/Excel passwords specified in the Report Designer to the Web Document Viewer.

Namespace : DevExpress.AspNetCore.Reporting

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

NuGet Package : DevExpress.AspNetCore.Reporting

Declaration

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

Returns

TypeDescription
WebDocumentViewerConfigurationBuilder

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

|

Remarks

During the export process, the Document Viewer uses passwords specified in its Export Options tab.

If you fully trust your users and environments, you can enable passing these passwords to the Web Document Viewer. To do this, call the EnablePassingExportOptionsPasswordsToClient method at application startup.

csharp
using DevExpress.AspNetCore;
using DevExpress.AspNetCore.Reporting;

var builder = WebApplication.CreateBuilder(args);

builder.Services.AddDevExpressControls();
builder.Services.AddMvc(); 

builder.Services.ConfigureReportingServices(configurator => {
    configurator.ConfigureWebDocumentViewer(viewerConfigurator => {
        viewerConfigurator.EnablePassingExportOptionsPasswordsToClient();
    });
});

var app = builder.Build();

See Also

General Security Considerations

WebDocumentViewerConfigurationBuilder Class

WebDocumentViewerConfigurationBuilder Members

DevExpress.AspNetCore.Reporting Namespace