Progress® Telerik® Reporting R2 2018

ReportsHostBaseReportServiceConfiguration Property

Gets or sets the configuration of the report service.

Namespace:  Telerik.Reporting.Services.ServiceStack
Assembly:  Telerik.Reporting.Services.ServiceStack (in Telerik.Reporting.Services.ServiceStack.dll)

Syntax

public IReportServiceConfiguration ReportServiceConfiguration { get; set; }

Property Value

Type: IReportServiceConfiguration

Remarks

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.ServiceStack.ReportFileResolver(reportsPath)
            .AddFallbackResolver(new Telerik.Reporting.Services.ServiceStack.ReportTypeResolver());

        var reportServiceConfiguration = new Telerik.Reporting.Services.ReportServiceConfiguration();
        reportServiceConfiguration.HostAppId = "Application1";
        reportServiceConfiguration.ReportResolver = resolver;
        reportServiceConfiguration.Storage = new Telerik.Reporting.Cache.File.FileStorage();

        this.ReportServiceConfiguration = reportServiceConfiguration;
    }
}

See Also

Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy