Ejemplo n.º 1
0
        void Application_Start(object sender, EventArgs e)
        {
            DevExpress.XtraReports.Web.WebDocumentViewer.Native.WebDocumentViewerBootstrapper.SessionState = System.Web.SessionState.SessionStateBehavior.Required;
            DevExpress.Web.ASPxWebControl.CallbackError += new EventHandler(Application_Error);
            ASPxWebDocumentViewer.StaticInitialize();
            //DevExpress.XtraReports.Web.Extensions.ReportStorageWebExtension.RegisterExtensionGlobal(new CustomReportStorageWebExtension());
            DevExpress.XtraReports.Web.Extensions.ReportStorageWebExtension.RegisterExtensionGlobal(new CustomReportStorageWebExtension(Server.MapPath("/Reports")));
            ASPxReportDesigner.StaticInitialize();
            ASPxWebDocumentViewer.StaticInitialize();


            System.Net.ServicePointManager.SecurityProtocol |= System.Net.SecurityProtocolType.Tls12;
        }
Ejemplo n.º 2
0
 protected void Application_Start()
 {
     DevExpress.XtraReports.Web.QueryBuilder.Native.QueryBuilderBootstrapper.SessionState           = System.Web.SessionState.SessionStateBehavior.Disabled;
     DevExpress.XtraReports.Web.ReportDesigner.Native.ReportDesignerBootstrapper.SessionState       = System.Web.SessionState.SessionStateBehavior.Disabled;
     DevExpress.XtraReports.Web.WebDocumentViewer.Native.WebDocumentViewerBootstrapper.SessionState = System.Web.SessionState.SessionStateBehavior.Disabled;
     AreaRegistration.RegisterAllAreas();
     FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
     RouteConfig.RegisterRoutes(RouteTable.Routes);
     BundleConfig.RegisterBundles(BundleTable.Bundles);
     ASPxWebDocumentViewer.StaticInitialize();
     //ASPxReportDesigner.StaticInitialize();
     DevExpress.XtraReports.Web.Extensions.ReportStorageWebExtension.RegisterExtensionGlobal(new ReportStorageWebExtension());
     DefaultReportDesignerContainer.RegisterDataSourceWizardConnectionStringsProvider <MyDataSourceWizardConnectionStringsProvider>();
 }