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

DefaultReportDesignerContainer.RegisterDataSourceWizardConfigFileConnectionStringsProvider() Method

Enables the Web Report Designer to use the data source connections specified in the configuration file of the web application.

Namespace: DevExpress.XtraReports.Web.ReportDesigner

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

Declaration

public static void RegisterDataSourceWizardConfigFileConnectionStringsProvider()
Public Shared Sub RegisterDataSourceWizardConfigFileConnectionStringsProvider

Remarks

A connection strings provider is used by the Data Source Wizard to obtain available data connections. The following code sample shows how to register the connection strings provider on application startup.

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

When the SQL Data Source wizard obtains connection strings from the Web.config file, only the connection name is serialized with the report definition.

You can register a custom connection string provider. Based on the registration mode you choose, all the connection parameters or the connection name only are serialized along with a report data source. When the report serialized with connection parameters is passed to the client, these parameters are encrypted by applying the MachineKey algorithm. To provide a custom encryption mechanism, use the ISecureDataConverter interface.

See Also