New to Telerik ReportingStart a free 30-day trial

Represents a result of the report rendering.

Definition

Namespace:Telerik.Reporting.Processing

Assembly:Telerik.Reporting.dll

Syntax:

C#
public sealed class RenderingResult

Inheritance: objectRenderingResult

Properties

Gets a byte array that contains the rendered report.

C#
public byte[] DocumentBytes { get; }

Gets the name of the created document.

C#
public string DocumentName { get; }

Encoding

Encoding

Gets the character encoding of the document.

C#
public Encoding Encoding { get; }

Errors

Exception[]

Gets an array of exceptions that has occurred during the report processing.

C#
public Exception[] Errors { get; }

Extension

string

Gets the file extension of the document.

C#
public string Extension { get; }

Gets a value that indicates whether the collection contains errors.

C#
public bool HasErrors { get; }

MimeType

string

Gets the MIME type of the document.

C#
public string MimeType { get; }

Gets a value that indicates the total number of pages in the generated document.

C#
public int PageCount { get; }
Remarks:

For formats supporting pagination, the total number of pages is calculated by the rendering engine according to the report's page settings. For formats not supporting pagination, e.g. XLS, XLSX, CSV, the property will return a default value of 0.