ASP.NET MVC 6.3.16
Demos Support Blog Download
Show / Hide Table of Contents
PDF

Class ReportHelper

Contains helper methods to process the report.

Inheritance
System.Object
ReportHelper
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: BoldReports.Web.ReportViewer
Assembly: BoldReports.Web.dll
Syntax
public static class ReportHelper

Properties

ReportingServer

Gets or sets the reporting server details to load report from server.

Declaration
public static ReportingServer ReportingServer { get; set; }
Property Value
Type Description
ReportingServer

The collections of reporting server details.

ReportServiceURL

Get or Set URL value to connect with another Report Viewer WEB API service URL to process the report.

Declaration
public static string ReportServiceURL { get; set; }
Property Value
Type Description
System.String

A string containing the url to connect the WEB API service.

ServiceAuthorizationToken

Authorization token to connect with the WEB API service provided in the ReportServiceURL property.

Declaration
public static string ServiceAuthorizationToken { get; set; }
Property Value
Type Description
System.String

A string containing the token to connect the WEB API service.

Methods

GetDataSetNames(Dictionary<String, Object>, IReportController)

Returns the dataset names that are used in the current report.

Declaration
public static IList<string> GetDataSetNames(Dictionary<string, object> jsonArray, IReportController reportController)
Parameters
Type Name Description
System.Collections.Generic.Dictionary<System.String, System.Object> jsonArray

A collection of keys and values to process the report.

IReportController reportController

The object that contains methods to process the report.

Returns
Type Description
System.Collections.Generic.IList<System.String>

A list of string objects that contain the dataset names used in report.

GetDataSources(Dictionary<String, Object>, IReportController, Boolean)

Returns the data sources that are used in the current report.

Declaration
public static List<DataSourceInfo> GetDataSources(Dictionary<string, object> jsonArray, IReportController reportController, bool includeAllSources = false)
Parameters
Type Name Description
System.Collections.Generic.Dictionary<System.String, System.Object> jsonArray

A collection of keys and values to process the report.

IReportController reportController

The object that contains methods to process the report.

System.Boolean includeAllSources

Optional. The default value is false.

Returns
Type Description
System.Collections.Generic.List<DataSourceInfo>

A list of DataSourceInfo objects that contain the report data source informations

GetParameters(Dictionary<String, Object>, IReportController)

Process and returns the parameters that are used in the current report.

Declaration
public static ReportParameterInfoCollection GetParameters(Dictionary<string, object> jsonArray, IReportController reportController)
Parameters
Type Name Description
System.Collections.Generic.Dictionary<System.String, System.Object> jsonArray

A collection of keys and values to process the report.

IReportController reportController

The object that contains methods to process the report.

Returns
Type Description
BoldReports.Web.ReportParameterInfoCollection

The BoldReports.Web.ReportParameterInfoCollection object that contain list of report parameter without values.

GetParametersWithValues(Dictionary<String, Object>, IReportController)

Returns the report paramters with data values that are used in the current report.

Declaration
public static ReportParameterInfoCollection GetParametersWithValues(Dictionary<string, object> jsonArray, IReportController reportController)
Parameters
Type Name Description
System.Collections.Generic.Dictionary<System.String, System.Object> jsonArray

A collection of keys and values to process the report.

IReportController reportController

The object that contains methods to process the report.

Returns
Type Description
BoldReports.Web.ReportParameterInfoCollection

The BoldReports.Web.ReportParameterInfoCollection object that contain list of report parameter with values.

GetReport(String, String, IReportController)

Returns the stream of the exported report in the given document format.

Declaration
public static Stream GetReport(string reportViewerInstanceId, string format, IReportController reportController = null)
Parameters
Type Name Description
System.String reportViewerInstanceId

The unique id of the Report Viewer current request instance.

System.String format

The format in which to export the report. Refer WriterFormat for supported formats.

IReportController reportController
Returns
Type Description
System.IO.Stream

A stream object containing the exported report.

GetReportingServer(Dictionary<String, Object>, IReportController)

Returns the report server that is used to process the current report.

Declaration
public static ReportingServer GetReportingServer(Dictionary<string, object> jsonArray, IReportController reportController)
Parameters
Type Name Description
System.Collections.Generic.Dictionary<System.String, System.Object> jsonArray

A collection of keys and values to process the report.

IReportController reportController

The object that contains methods to process the report.

Returns
Type Description
ReportingServer

The ReportingServer object of the current processing Reporting Server.

GetResource(String, String, Boolean)

Send a GET request and returns the requested resource for a report.

Declaration
public static object GetResource(string key, string resourcetype, bool isPrint)
Parameters
Type Name Description
System.String key

The unique key to get the desired resource.

System.String resourcetype

The type of the requested resource.

System.Boolean isPrint

If set to true, then the resource is generated for printing.

Returns
Type Description
System.Object

Resource object for the given key

ProcessReport(Dictionary<String, Object>, IReportController)

Processes the current report request and returns the report processed information.

Declaration
public static object ProcessReport(Dictionary<string, object> jsonArray, IReportController reportController)
Parameters
Type Name Description
System.Collections.Generic.Dictionary<System.String, System.Object> jsonArray

A collection of keys and values to process the report.

IReportController reportController

The object that contains methods to process the report.

Returns
Type Description
System.Object

An object containing the JSON result for the current report process request.

In This Article
Was this page helpful? Yes No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
×
SEND FEEDBACK REGARDING THIS TOPIC

Please provide additional information

Please provide additional information

Please provide additional information

Please provide additional information
Please provide additional information
Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved