Exemple #1
0
        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();
        }
Exemple #2
0
 void Application_Start(object sender, EventArgs e)
 {
     DevExpress.Web.ASPxWebControl.CallbackError += new EventHandler(Application_Error);
     DefaultWebDocumentViewerContainer.RegisterSingleton <WebDocumentViewerOperationLogger, CustomOperationLogger>();
 }