Class
RenderingResult

Represents a result of the report rendering.

Definition

Namespace:Telerik.Reporting.Processing

Assembly:Telerik.Reporting.dll

Syntax:

cs-api-definition
public sealed class RenderingResult

Inheritance: objectRenderingResult

Properties

DocumentBytes

Gets a byte array that contains the rendered report.

Declaration

cs-api-definition
public byte[] DocumentBytes { get; }

Property Value

byte[]

DocumentName

Gets the name of the created document.

Declaration

cs-api-definition
public string DocumentName { get; }

Property Value

string

Encoding

Gets the character encoding of the document.

Declaration

cs-api-definition
public Encoding Encoding { get; }

Property Value

Encoding

Errors

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

Declaration

cs-api-definition
public Exception[] Errors { get; }

Property Value

Exception[]

Extension

Gets the file extension of the document.

Declaration

cs-api-definition
public string Extension { get; }

Property Value

string

HasErrors

Gets a value that indicates whether the collection contains errors.

Declaration

cs-api-definition
public bool HasErrors { get; }

Property Value

bool

MimeType

Gets the MIME type of the document.

Declaration

cs-api-definition
public string MimeType { get; }

Property Value

string

PageCount

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

Declaration

cs-api-definition
public int PageCount { get; }

Property Value

int

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.