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

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.v19.1.Web.dll

Declaration

public static void EnablePassingExportOptionsPasswordsToClient()
Public Shared Sub 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