The requested page is not available for the requested platform. You are viewing the content for Default platform.

WebDocumentViewerConfigurationBuilder.EnablePassingExportOptionsPasswordsToClient() Method

Enables passing PDF/Excel passwords specified in the Report Designer to the Web Document Viewer.

Namespace: DevExpress.AspNetCore.Reporting

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

Declaration

public WebDocumentViewerConfigurationBuilder EnablePassingExportOptionsPasswordsToClient()
Public Function EnablePassingExportOptionsPasswordsToClient As WebDocumentViewerConfigurationBuilder

Returns

Type Description
WebDocumentViewerConfigurationBuilder

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

Remarks

For security reasons, PDF/Excel passwords specified in the Report Designer are not exposed in the Web Document Viewer. 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 the application startup.

using DevExpress.AspNetCore;
using DevExpress.AspNetCore.Reporting;
//... 

public class Startup {
//... 
    public void ConfigureServices(IServiceCollection services) {
        services.AddDevExpressControls();
        services.AddMvc(); 

        services.ConfigureReportingServices(configurator => {
            configurator.ConfigureWebDocumentViewer(viewerConfigurator => {
                viewerConfigurator.EnablePassingExportOptionsPasswordsToClient();
            });
        });        
    }
//...    
}

See General Security Considerations for more information.

See Also