Skip to main content
A newer version of this page is available. .

DefaultWebDocumentViewerContainer.EnablePassingExportOptionsPasswordsToClient() Method

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

Namespace: DevExpress.XtraReports.Web.WebDocumentViewer

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

Declaration

public static void EnablePassingExportOptionsPasswordsToClient()

Remarks

By default, PDF/Excel passwords specified in the Report Designer for a specific report are not exposed in the Web Document Viewer. During the document export, the Document Viewer uses passwords specified in its Export Options tab.

Call the EnablePassingExportOptionsPasswordsToClient method at the application startup in the Global.asax file to enable passing these passwords to the Web Document Viewer.

using DevExpress.XtraReports.Web.WebDocumentViewer;
// ...

protected void Application_Start(object sender, System.EventArgs e) {
    // ...
    DefaultWebDocumentViewerContainer.EnablePassingExportOptionsPasswordsToClient();
}

See Register Services in the Document Viewer for a complete list of available services and their registration methods.

See Also