• Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Design
    Unite UX
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class ReportServiceBase

The base class of the Telerik Reporting WCF Service.

Inheritance
System.Object
ReportServiceBase
ReportService
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.Reporting.Service
Assembly: Telerik.Reporting.Service.dll

Syntax

public abstract class ReportServiceBase : IReportService, IResourceService, IClientAccessPolicy

Constructors

ReportServiceBase()

Declaration
protected ReportServiceBase()

Properties

ApplicationPath

When implemented, returns the file system path of the current application's root directory. It is used to resolve the relative paths of the UriReportSources.

Declaration
protected abstract string ApplicationPath { get; }
Property Value
System.String

Remarks

Should return a valid directory path that ends with a slash (/) or a backslash ()

BaseAddress

When implemented, returns the base address of the Telerik ReportService that will be used as a base Uri for the resources

Declaration
protected abstract Uri BaseAddress { get; }
Property Value
System.Uri

ReportResolver

Declaration
public IReportResolver ReportResolver { get; set; }
Property Value
IReportResolver

Methods

GetState(String)

Gets a value from the internal storage.

Declaration
protected virtual object GetState(string name)
Parameters
System.String name

The key name of the state value.

Returns
System.Object

The state value with the specified name.

Remarks

The internal storage represents a central place for storing shared data between the service calls.

Render(String, String, NameValueDictionary, NameValueDictionary)

Renders a report and returns the generated document.

Declaration
public RenderingResult Render(string format, string report, NameValueDictionary deviceInfo, NameValueDictionary parameterValues)
Parameters
System.String format

The render format.

System.String report

The System.Type.AssemblyQualifiedName of the report type to render.

NameValueDictionary deviceInfo

A dictionary with setting for the current render format.

NameValueDictionary parameterValues

A dictionary with values for the report parameters.

Returns
RenderingResult

A RenderingResult that contains the generated document bytes and info.

Implements
IReportService.Render(String, String, NameValueDictionary, NameValueDictionary)

SetState(String, Object)

Adds a value to the internal storage.

Declaration
protected virtual void SetState(string name, object value)
Parameters
System.String name

The key name of the state value.

System.Object value

The state value with the specified name.

Remarks

The internal storage represents a central place for storing shared data between the service calls.

Explicit Interface Implementations

IClientAccessPolicy.GetClientAccessPolicy()

Returns security policy file required by Silverlight when accessing a cross-domain service.

Declaration
Stream IClientAccessPolicy.GetClientAccessPolicy()
Returns
System.IO.Stream

A System.IO.Stream that contains the clientaccesspolicy.xml

Implements
IClientAccessPolicy.GetClientAccessPolicy()
Remarks

If the connection request was from a WebClient or an HTTP class to a cross-domain site, the Silverlight runtime tries to download the security policy file using the HTTP protocol. The Silverlight runtime first tries to download a Silverlight policy file with a name of "clientaccesspolicy.xml" at the root of the requested target domain using the HTTP protocol.

Override this method in order to change the default access policy for ReportServiceBase.

The default implementation of the IClientAccessPolicy interface returns a general policy that policy accepts connections from any domain and allows request headers and specifies resources that can be accessed and includes sub-paths of these resources:

<?xml version="1.0" encoding="utf-8"?>
<access-policy>
  <cross-domain-access>
    <policy>
      <allow-from http-request-headers="*">
        <domain uri="*"/>
      </allow-from>
      <grant-to>
        <resource path="/" include-subpaths="true"/>
      </grant-to>
    </policy>
  </cross-domain-access>
</access-policy>

IReportService.GetPage(String, Int32)

Retrieves a rendered page for the given rendering session ID and page number. This operation is intended for internal use only.

Declaration
PageInfo IReportService.GetPage(string instanceID, int pageNumber)
Parameters
System.String instanceID

The unique identifier of the rendering session as returned by a previous call to RenderAndCache operation.

System.Int32 pageNumber

The serial number of the page to retrieve.

Returns
PageInfo

A PageInfo that contains the page data.

Implements
IReportService.GetPage(String, Int32)

IReportService.GetReportParameters(String, NameValueDictionary, NameValueDictionary)

Retrieves a list of report parameters for the given report and values. This operation is intended for internal use only.

Declaration
List<Parameter> IReportService.GetReportParameters(string report, NameValueDictionary deviceInfo, NameValueDictionary parameterValues)
Parameters
System.String report

The System.Type.AssemblyQualifiedName of the report type for which to obtain the parameters.

NameValueDictionary deviceInfo

A dictionary with settings for the current device.

NameValueDictionary parameterValues

A dictionary with values for the report parameters.

Returns
System.Collections.Generic.List<Parameter>

A list of report parameters.

Implements
IReportService.GetReportParameters(String, NameValueDictionary, NameValueDictionary)

IReportService.ListAvailableReports()

Retrieves the list of the available for the service reports.

Declaration
IList<ReportInfo> IReportService.ListAvailableReports()
Returns
System.Collections.Generic.IList<ReportInfo>

List of the available reports.

Implements
IReportService.ListAvailableReports()

IReportService.ListRenderingExtensions()

Retrieves the list of available rendering extensions. This operation is intended for internal use only.

Declaration
IList<ExtensionInfo> IReportService.ListRenderingExtensions()
Returns
System.Collections.Generic.IList<ExtensionInfo>

List of available rendering extensions.

Implements
IReportService.ListRenderingExtensions()

IReportService.RenderAndCache(String, String, NameValueDictionary, NameValueDictionary)

Renders a report and stores the result in the current session. This operation is intended for internal use only.

Declaration
RenderingSessionInfo IReportService.RenderAndCache(string format, string report, NameValueDictionary deviceInfo, NameValueDictionary parameterValues)
Parameters
System.String format

The render format.

System.String report

The System.Type.AssemblyQualifiedName of the report type to render.

NameValueDictionary deviceInfo

A dictionary with setting for the current render format.

NameValueDictionary parameterValues

A dictionary with values for the report parameters.

Returns
RenderingSessionInfo

A RenderingSessionInfo that contains the result of the rendering operation.

Implements
IReportService.RenderAndCache(String, String, NameValueDictionary, NameValueDictionary)
Remarks

Requires ASP.NET session.

IResourceService.Export(String, String, String, String)

Retrieves a report document.

Declaration
Stream IResourceService.Export(string format, string report, string deviceInfo, string parameterValues)
Parameters
System.String format

The render format.

System.String report

The System.Type.AssemblyQualifiedName of the report type to render.

System.String deviceInfo

JSON-formatted dictionary (key/value pairs) with DeviceInfo settings for the current render format.

System.String parameterValues

JSON-formatter (key/value pairs) with the parameter values for the current report.

Returns
System.IO.Stream

Implements
IResourceService.Export(String, String, String, String)
Remarks

Requires HTTP GET request.

IResourceService.ExportCachedReport(String, String, String)

Declaration
Stream IResourceService.ExportCachedReport(string instanceID, string format, string deviceInfo)
Parameters
System.String instanceID

System.String format

System.String deviceInfo

Returns
System.IO.Stream

Implements
IResourceService.ExportCachedReport(String, String, String)

IResourceService.GetRenderStream(String, String)

Retrieves a render stream created during a report rendering session.

Declaration
Stream IResourceService.GetRenderStream(string instanceID, string name)
Parameters
System.String instanceID

The unique identifier of the rendering session that resource belongs to.

System.String name

The name of the resource.

Returns
System.IO.Stream

Implements
IResourceService.GetRenderStream(String, String)
Remarks

Requires HTTP GET request.

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Online Demos
Support Resources
  • Documentation
  • Knowledge Base
  • Videos
  • Reporting Samples Repository
  • Reporting Release History
Community
  • Forums
  • Blogs
  • Reporting Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.