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

Class ReportDesignerHelper

Contains helper methods that help to process Post or Get request from the Report Designer control and returns the response to the Report Designer control.

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

Properties

ReportingServer

Gets or sets the external report server.

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

Methods

GetEncodedCode()

Gets the encrypted key code from header

Declaration
public static string GetEncodedCode()
Returns
Type Description
System.String

Returns the encrypted key code string

GetImage(String, String, IReportDesignerController)

Downloads the resource of images in the report.

Declaration
public static object GetImage(string key, string image, IReportDesignerController controller)
Parameters
Type Name Description
System.String key

The unique key to get the desired image.

System.String image

File path of the image, to download.

IReportDesignerController controller

WebAPI controller instance.

Returns
Type Description
System.Object

Returns the downloaded response of image.

Examples
public class ReportController : ApiController, IReportDesignerController
{
   public object PostDesignerAction(Dictionary<string, object> jsonResult)
   {
      return ReportDesignerHelper.ProcessDesigner(jsonResult, this, null);
   }
   [System.Web.Http.ActionName("GetImage")]
   [AcceptVerbs("GET")]
   public object GetImage(string key, string image)
    {
        return ReportDesignerHelper.GetImage(key, image, this);
    }
    ...
}

LogError(IReportLogger, String, Exception, MethodBase, ErrorType)

Method can be used to write the exceptions and their details in a log file.

Declaration
public static bool LogError(IReportLogger logger, string message, Exception exception, MethodBase methodType, ErrorType errorType)
Parameters
Type Name Description
IReportLogger logger

Logger instance to redirect to the connected interface

System.String message

Error message of unexceptional case.

System.Exception exception

Represents the error that occur during application execution.

System.Reflection.MethodBase methodType

Information about current method.

ErrorType errorType

ErrorType

Returns
Type Description
System.Boolean

Returns true, if error information successfully written into log file.

ProcessDesigner(Dictionary<String, Object>, IReportDesignerController, HttpPostedFile)

Processes the current designer request and returns the json result.

Declaration
public static object ProcessDesigner(Dictionary<string, object> jsonArray, IReportDesignerController designer, HttpPostedFile httpPostedFile)
Parameters
Type Name Description
System.Collections.Generic.Dictionary<System.String, System.Object> jsonArray

A collection of keys and values to process the designer request.

IReportDesignerController designer

The ReportDesigner uses Web API services to process the report file, process the request from control, and to return the processed data to control.

System.Web.HttpPostedFile httpPostedFile

Information about the file to be upload.

Returns
Type Description
System.Object

Json result for the current request.

Examples
public class ReportController : ApiController, IReportDesignerController
{
   public object PostDesignerAction(Dictionary<string, object> jsonResult)
   {
      return ReportDesignerHelper.ProcessDesigner(jsonResult, this, null);
   }
   ...
}
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