protected void Application_Start() { //AreaRegistration.RegisterAllAreas(); RouteConfig.RegisterRoutes(RouteTable.Routes); DefaultWebDocumentViewerContainer.Register <IWebDocumentViewerReportResolver, CustomWebDocumentViewerReportResolver>(); }
protected void Application_Start(object sender, EventArgs e) { DefaultWebDocumentViewerContainer.Register <IWebDocumentViewerReportResolver, CustomWebDocumentViewerReportResolver>(); //ReportStorageWebExtension registration DevExpress.XtraReports.Web.Extensions.ReportStorageWebExtension.RegisterExtensionGlobal(new CustomReportStorageWebExtension()); //Allow report scripts execution ScriptPermissionManager.GlobalInstance = new ScriptPermissionManager(ExecutionMode.Unrestricted); }
protected void Application_Start(object sender, EventArgs e) { DevExpress.ExpressApp.FrameworkSettings.DefaultSettingsCompatibilityMode = DevExpress.ExpressApp.FrameworkSettingsCompatibilityMode.Latest; DefaultWebDocumentViewerContainer.Register <DocumentOperationService, CustomDocumentOperationService>(); AboutInfo.Instance.Copyright = AssemblyInfo.AssemblyCopyright + " All Rights Reserved"; RouteTable.Routes.RegisterXafRoutes(); ASPxWebControl.CallbackError += new EventHandler(Application_Error); #if DEBUG TestScriptsManager.EasyTestEnabled = true; #endif }
protected void Application_Start() { DevExpress.XtraReports.Web.WebDocumentViewer.Native.WebDocumentViewerBootstrapper.SessionState = System.Web.SessionState.SessionStateBehavior.Required; DefaultWebDocumentViewerContainer.Register <IExportingAuthorizationService, Services.OperationLogger>(); DefaultWebDocumentViewerContainer.Register <WebDocumentViewerOperationLogger, Services.OperationLogger>(); DefaultWebDocumentViewerContainer.Register <IWebDocumentViewerAuthorizationService, Services.OperationLogger>(); AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); }
protected void Application_Start() { DevExpress.XtraReports.Web.WebDocumentViewer.Native.WebDocumentViewerBootstrapper.SessionState = System.Web.SessionState.SessionStateBehavior.Default; DefaultWebDocumentViewerContainer.Register <DocumentOperationService, CustomDocumentOperationService>(); MVCxWebDocumentViewer.StaticInitialize(); AreaRegistration.RegisterAllAreas(); GlobalConfiguration.Configure(WebApiConfig.Register); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); ModelBinders.Binders.DefaultBinder = new DevExpress.Web.Mvc.DevExpressEditorsBinder(); DevExpress.Web.ASPxWebControl.CallbackError += Application_Error; }
protected void Application_Start(object sender, EventArgs e) { DefaultWebDocumentViewerContainer.UseFileExportedDocumentStorage(Server.MapPath("~/CustomSharedViewerStorage/ExportedDocuments"), StorageSynchronizationMode.InterProcess); DefaultWebDocumentViewerContainer.UseFileDocumentStorage(Server.MapPath("~/CustomSharedViewerStorage/Documents"), StorageSynchronizationMode.InterProcess); DefaultWebDocumentViewerContainer.UseFileReportStorage(Server.MapPath("~/CustomSharedViewerStorage/Reports"), StorageSynchronizationMode.InterProcess); DefaultWebDocumentViewerContainer.UseCachedReportSourceBuilder(); DefaultWebDocumentViewerContainer.Register <ICachedReportSourceWebResolver, CustomCachedReportSourceWebResolver>(); DevExpress.XtraReports.Web.Extensions.ReportStorageWebExtension.RegisterExtensionGlobal(new ReportStorageWebExtension1(Server.MapPath("~/CustomSharedDesignerStorage"))); var storageCleanerSettings = new StorageCleanerSettings(TimeSpan.FromMinutes(1), TimeSpan.FromMinutes(2), TimeSpan.FromMinutes(20), TimeSpan.FromMinutes(20), TimeSpan.FromMinutes(20)); DefaultWebDocumentViewerContainer.RegisterSingleton <StorageCleanerSettings>(storageCleanerSettings); var cacheCleanerSettings = new CacheCleanerSettings(TimeSpan.FromSeconds(30), TimeSpan.FromSeconds(30), TimeSpan.FromSeconds(60), TimeSpan.FromSeconds(60)); DefaultWebDocumentViewerContainer.RegisterSingleton <CacheCleanerSettings>(cacheCleanerSettings); DevExpress.XtraReports.Web.ASPxReportDesigner.StaticInitialize(); }
protected void Application_Start() { #region Query builder DefaultQueryBuilderContainer.Register <IDataSourceWizardConnectionStringsProvider, DataSourceWizardConnectionStringsProvider>(); DefaultQueryBuilderContainer.RegisterDataSourceWizardDBSchemaProviderExFactory <DataSourceWizardDBSchemaProviderExFactory>(); // MVCxQueryBuilder.StaticInitialize(); // Don't need this line if ASPxReportDesigner.StaticInitialize() has been called #endregion #region Reports DefaultWebDocumentViewerContainer.Register <IExportingAuthorizationService, OperationLogger>(); DefaultWebDocumentViewerContainer.Register <WebDocumentViewerOperationLogger, OperationLogger>(); DefaultWebDocumentViewerContainer.Register <IWebDocumentViewerAuthorizationService, OperationLogger>(); DefaultReportDesignerContainer.Register <WebDocumentViewerOperationLogger, OperationLogger>(); DevExpress.XtraReports.Web.Extensions.ReportStorageWebExtension.RegisterExtensionGlobal(new ReportStorageWithAccessRules()); DefaultReportDesignerContainer.RegisterDataSourceWizardConnectionStringsProvider <DataSourceWizardConnectionStringsProvider>(); // Provide connections to Report Designer DefaultReportDesignerContainer.RegisterDataSourceWizardDBSchemaProviderExFactory <DataSourceWizardDBSchemaProviderExFactory>(); // Provide only nessesary dbtables DevExpress.XtraReports.Web.WebDocumentViewer.Native.WebDocumentViewerBootstrapper.SessionState = System.Web.SessionState.SessionStateBehavior.Required; MVCxReportDesigner.StaticInitialize(); #endregion #region Dashboards DashboardConfigurator.Default.SetDashboardStorage(new DashboardStorageWithAccessRules()); DashboardConfigurator.Default.SetConnectionStringsProvider(new DataSourceWizardConnectionStringsProvider()); // Provide connections to Dashboard Designer DashboardConfigurator.Default.SetDBSchemaProvider(new DBSchemaProviderEx()); // Provide only nessesary dbtables #endregion AreaRegistration.RegisterAllAreas(); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); ModelBinders.Binders.DefaultBinder = new DevExpress.Web.Mvc.DevExpressEditorsBinder(); DevExpress.Web.ASPxWebControl.CallbackError += Application_Error; // Export to CSV (Preventing CSV Injections) DevExpress.Export.ExportSettings.EncodeCsvExecutableContent = DevExpress.Utils.DefaultBoolean.True; // More Secure, but may affect content }
protected void Application_Start(object sender, EventArgs e) { #region Query builder DefaultQueryBuilderContainer.Register <IDataSourceWizardConnectionStringsProvider, DataSourceWizardConnectionStringsProvider>(); DefaultQueryBuilderContainer.RegisterDataSourceWizardDBSchemaProviderExFactory <DataSourceWizardDBSchemaProviderExFactory>(); //DevExpress.XtraReports.Web.ASPxQueryBuilder.StaticInitialize(); // This line is unnecessary if ASPxReportDesigner.StaticInitialize() has been called #endregion #region Reports DefaultWebDocumentViewerContainer.Register <IExportingAuthorizationService, OperationLogger>(); DefaultWebDocumentViewerContainer.Register <WebDocumentViewerOperationLogger, OperationLogger>(); DefaultWebDocumentViewerContainer.Register <IWebDocumentViewerAuthorizationService, OperationLogger>(); DefaultReportDesignerContainer.Register <WebDocumentViewerOperationLogger, OperationLogger>(); DevExpress.XtraReports.Web.Extensions.ReportStorageWebExtension.RegisterExtensionGlobal(new ReportStorageWithAccessRules()); DefaultReportDesignerContainer.RegisterDataSourceWizardConnectionStringsProvider <DataSourceWizardConnectionStringsProvider>(); // Provide connections to Report Designer DefaultReportDesignerContainer.RegisterDataSourceWizardDBSchemaProviderExFactory <DataSourceWizardDBSchemaProviderExFactory>(); // Provide only nessesary dbtables DevExpress.XtraReports.Web.WebDocumentViewer.Native.WebDocumentViewerBootstrapper.SessionState = System.Web.SessionState.SessionStateBehavior.Required; DevExpress.XtraReports.Web.ASPxReportDesigner.StaticInitialize(); #endregion #region Dashboards var service = new DashboardStorageWithAccessRules(); DashboardConfigurator.Default.SetDashboardStorage(service); DashboardConfigurator.Default.CustomParameters += (o, args) => { if (!service.IsAuthorized(args.DashboardId)) { throw new UnauthorizedAccessException(); } }; DashboardConfigurator.Default.SetConnectionStringsProvider(new DataSourceWizardConnectionStringsProvider()); // Provide connections to Dashboard Designer DashboardConfigurator.Default.SetDBSchemaProvider(new DBSchemaProviderEx()); // Provide only nessesary dbtables #endregion // Export to CSV (Preventing CSV Injections) DevExpress.Export.ExportSettings.EncodeCsvExecutableContent = DevExpress.Utils.DefaultBoolean.True; // More Secure, but may affect content }
protected void Application_Start(Object sender, EventArgs e) { DefaultWebDocumentViewerContainer.Register <IWebDocumentViewerReportResolver, XafReportsResolver <GestParcAutoMobileApplication> >(); }
protected void Application_Start(object sender, EventArgs e) { DevExpress.XtraReports.Web.WebDocumentViewer.Native.WebDocumentViewerBootstrapper.SessionState = System.Web.SessionState.SessionStateBehavior.Required; DefaultWebDocumentViewerContainer.Register <IWebDocumentViewerReportResolver, CustomWebDocumentViewerReportResolver>(); DevExpress.XtraReports.Web.ASPxWebDocumentViewer.StaticInitialize(); }
public void Application_Start(object sender, EventArgs e) { DefaultWebDocumentViewerContainer.Register <IWebDocumentViewerReportResolver, XafReportsResolver <MainDemoMobileApplication> >(); }
public void Application_Start(object sender, EventArgs e) { ScriptPermissionManager.GlobalInstance = new ScriptPermissionManager(ExecutionMode.Unrestricted); DefaultWebDocumentViewerContainer.Register <IWebDocumentViewerReportResolver, XafReportsResolver <MainDemoMobileApplication> >(); }