Progress® Telerik® Reporting R3 2020
ReportsHostBase.ReportServiceConfiguration Property
Gets or sets the configuration of the report service.
Namespace:
Telerik.Reporting.Services.ServiceStackAssembly: Telerik.Reporting.Services.ServiceStack (in Telerik.Reporting.Services.ServiceStack.dll) Version: 14.2.20.1120 R3 2020 SP1
Syntax
Property Value
Type: IReportServiceConfigurationRemarks
When inheriting the ReportsControllerBase controller basic configuration is needed.
Provide an object implementing the IReportServiceConfiguration
in order to configure the report service. This should be done in the
controllers' constructor using static object to preserve the configuration
between requests or using dependency injection.
Examples
This example shows how to configure WebAPI service using the ReportServiceConfiguration object.
public class ReportsHost : Telerik.Reporting.Services.ServiceStack.ReportsHostBase { public ReportsHost() { var reportsPath = System.Web.HttpContext.Current.Server.MapPath(@"~\Reports"); var resolver = new Telerik.Reporting.Services.UriReportSourceResolver(reportsPath) .AddFallbackResolver(new Telerik.Reporting.Services.TypeReportSourceResolver()); var reportServiceConfiguration = new Telerik.Reporting.Services.ReportServiceConfiguration(); reportServiceConfiguration.HostAppId = "Application1"; reportServiceConfiguration.ReportSourceResolver = resolver; reportServiceConfiguration.Storage = new Telerik.Reporting.Cache.File.FileStorage(); this.ReportServiceConfiguration = reportServiceConfiguration; } }
Version Information
Supported in: 1.0.1