protected override IReportResolver CreateReportResolver() { //This is the folder that contains the XML (trdx) report definitions. var reportsPath = HttpContext.Current.Server.MapPath(@"~/"); //Resolver for trdx report definitions. var reportFileResolver = new ReportFileResolver(reportsPath); // Resolver for class report definitions. var reportTypeResolver = new ReportTypeResolver(); // Add the ReportTypeResolver as fallback resolver and // return the ReportFileResolver instance. return(reportFileResolver.AddFallbackResolver(reportTypeResolver)); }
static ReportsController() { var appPath = HttpContext.Current.Server.MapPath("~/"); var reportsPath = Path.Combine(appPath, "Reports"); var resolver = new ReportFileResolver(reportsPath) .AddFallbackResolver(new ReportTypeResolver()); configurationInstance = new ReportServiceConfiguration { HostAppId = "ShoppingOnlineApp", Storage = new FileStorage(), ReportResolver = resolver }; }
static ReportsController() { var appPath = HttpContext.Current.Server.MapPath("~/"); var reportsPath = HttpContext.Current.Server.MapPath("~/Reports"); var resolver = new ReportFileResolver(reportsPath) .AddFallbackResolver(new ReportTypeResolver()); //Setup the ReportServiceConfiguration configurationInstance = new ReportServiceConfiguration { HostAppId = "Html5App", Storage = new Telerik.Reporting.Cache.File.FileStorage(), ReportResolver = resolver, }; }
static ReportsController() { var appPath = HttpContext.Current.Server.MapPath("~/"); var reportsPath = Path.Combine(appPath, @"..\..\..\Report Designer\Examples"); var resolver = new ReportFileResolver(reportsPath) .AddFallbackResolver(new ReportTypeResolver()); configurationInstance = new ReportServiceConfiguration { HostAppId = "Html5DemoApp", Storage = new FileStorage(), ReportResolver = resolver, // ReportSharingTimeout = 0, // ClientSessionTimeout = 15, }; }
static ReportsController() { //This is the folder that contains the XML (trdx) report definitions //In this case this is the app folder var reportPath = HttpContext.Current.Server.MapPath("~/"); //Add resolver for trdx report definitions, //then add resolver for class report definitions as fallback resolver; //finally create the resolver and use it in the ReportServiceConfiguration instance. var resolver = new ReportFileResolver(reportPath) .AddFallbackResolver(new ReportTypeResolver()); //Setup the ReportServiceConfiguration configurationInstance = new ReportServiceConfiguration { HostAppId = "Html5DemoApp", Storage = new FileStorage(), ReportResolver = resolver, // ReportSharingTimeout = 0, // ClientSessionTimeout = 15, }; }
static ReportsController() { //This is the folder that contains the XML (trdx) report definitions //In this case this is the app folder var reportPath = HttpContext.Current.Server.MapPath("~/"); //Add resolver for trdx report definitions, //then add resolver for class report definitions as fallback resolver; //finally create the resolver and use it in the ReportServiceConfiguration instance. var resolver = new ReportFileResolver(reportPath) .AddFallbackResolver(new ReportTypeResolver()); //Setup the ReportServiceConfiguration configurationInstance = new ReportServiceConfiguration { HostAppId = "Html5DemoApp", Storage = new FileStorage(), ReportResolver = resolver, // ReportSharingTimeout = 0, // ClientSessionTimeout = 15, }; }
static ReportsController() { //This is the folder that contains the XML (trdx) report definitions //In this case this is the app folder // ReportLibrary2.Report2.ChangeSqlString("Data Source=devServer;Initial Catalog=Z_Yamhill;User ID=sa;Password=data22"); var reportsPath = HttpContext.Current.Server.MapPath("~/"); //Add resolver for trdx report definitions, //then add resolver for class report definitions as fallback resolver; //finally create the resolver and use it in the ReportServiceConfiguration instance. var resolver = new ReportFileResolver(reportsPath) .AddFallbackResolver(new ReportTypeResolver()); //Setup the ReportServiceConfiguration configurationInstance = new ReportServiceConfiguration { HostAppId = "MvcApp", Storage = new FileStorage(), ReportResolver = resolver, // ReportSharingTimeout = 0, // ClientSessionTimeout = 15, }; }
static ReportsController() { //This is the folder that contains the XML (trdx) report definitions //In this case this is the app folder // ReportLibrary2.Report2.ChangeSqlString("Data Source=devServer;Initial Catalog=Z_Yamhill;User ID=sa;Password=data22"); var reportsPath = HttpContext.Current.Server.MapPath("~/"); //Add resolver for trdx report definitions, //then add resolver for class report definitions as fallback resolver; //finally create the resolver and use it in the ReportServiceConfiguration instance. var resolver = new ReportFileResolver(reportsPath) .AddFallbackResolver(new ReportTypeResolver()); //Setup the ReportServiceConfiguration configurationInstance = new ReportServiceConfiguration { HostAppId = "MvcApp", Storage = new FileStorage(), ReportResolver = resolver, // ReportSharingTimeout = 0, // ClientSessionTimeout = 15, }; }