ASPxReportDesigner.StaticInitialize() Method

Explicitly starts the Report Designer initialization.

Namespace: DevExpress.XtraReports.Web

Assembly: DevExpress.XtraReports.v18.1.Web.WebForms.dll

Syntax

public static void StaticInitialize()

The ASPxReportDesigner is automatically initialized when rendering on your application's Web page, but in specific cases, you need to trigger its initialization explicitly (for instance, when an AppPool is recycled).

The StaticInitialize method does the following:

  • Calls the static ASPxReportDesigner constructor;
  • Registers HttpHandlers required for the Report Designer, Web Document Viewer and Query Builder;
  • Initializes all services for processing requests to the corresponding handlers.

Use the StaticInitialize method at the application startup in the Global.asax file.

Note

To make the Report Designer's handlers work correctly, you should call this method after specifying the session state and registering additional services.

protected void Application_Start(Object sender, EventArgs e) {
    // ...  
   DevExpress.XtraReports.Web.ReportDesigner.Native.ReportDesignerBootstrapper.SessionState = 
        System.Web.SessionState.SessionStateBehavior.Required;
    // ...  
    DevExpress.XtraReports.Web.ASPxReportDesigner.StaticInitialize();
}