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

DefaultReportDesignerContainer.AllowPassingDataSourceConnectionParametersToClient() Method

Enables the Web Report Designer to pass data source connection parameters from the Web.config file to the client.

Namespace: DevExpress.XtraReports.Web.ReportDesigner

Assembly: DevExpress.XtraReports.v19.1.Web.dll

Declaration

public static void AllowPassingDataSourceConnectionParametersToClient()
Public Shared Sub AllowPassingDataSourceConnectionParametersToClient

Remarks

When the Web Report Designer is enabled to use data connections specified in the application's Web.config file, these connections' parameters are encrypted by applying the MachineKey algorithm to them by default. For this reason, it is not required to call the AllowPassingDataSourceConnectionParametersToClient method explicitly in most scenarios.

If, however, you are required to do this, call this method at the application startup, as illustrated in the following example.

using DevExpress.XtraReports.Web.ReportDesigner;
// ...

public class Global_asax : System.Web.HttpApplication {
    void Application_Start(object sender, EventArgs e) {
        // Register a connection strings provider. 
        DefaultReportDesignerContainer.RegisterDataSourceWizardConfigFileConnectionStringsProvider();

        // Enable the Web Report Designer to pass data source connection parameters from the Web.config file to the client.
        DefaultReportDesignerContainer.AllowPassingDataSourceConnectionParametersToClient();
    }
    //...
}
See Also