Class
ReportBook

Represents a collection of reports logically unified as a single document.

Definition

Namespace:Telerik.Reporting

Assembly:Telerik.Reporting.dll

Syntax:

cs-api-definition
[ToolboxBitmap(typeof(ReportBook), "Resources.ReportBook.bmp")]
public class ReportBook : Component, IReportDocument

Inheritance: objectMarshalByRefObjectComponentReportBook

Implements: IReportDocument

Constructors

ReportBook()

Initializes a new instance of the ReportBook class with default settings.

Declaration

cs-api-definition
public ReportBook()

ReportBook(IEnumerable<Report>)

Initializes a new instance of the ReportBook class from the provided reports.

Declaration

cs-api-definition
[Obsolete("Please use the default constructor and add the reports to the ReportSource collection.")]
public ReportBook(IEnumerable<Report> reports)

Parameters

reports

IEnumerable<Report>

ReportBook(IEnumerable<Report>, string)

Initializes a new instance of the ReportBook class from the provided reports and document name.

Declaration

cs-api-definition
[Obsolete("Please use the default constructor, add the reports to the ReportSource collection and set document name.")]
public ReportBook(IEnumerable<Report> reports, string documentName)

Parameters

reports

IEnumerable<Report>

documentName

string

Properties

DocumentName

Gets or sets a string representing the name of the document.

Declaration

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

Property Value

string

A string representing the document name. The default value is the Type name of the ReportBook this property belongs to.

Implements IReportDocument.DocumentName

Remarks

The value of this property is used to suggest a file name when exporting to one of the available export formats.

A string that starts with "=" is interpreted as an expression to evaluate the document name; otherwise it is interpreted as a literal string.

ReportSources

Gets the collection of reports that take part in this ReportBook.

Declaration

cs-api-definition
public ReportSourceCollection ReportSources { get; }

Property Value

ReportSourceCollection

Reports

Gets the collection of reports that are parts of this ReportBook.

Declaration

cs-api-definition
[Obsolete("Please use ReportSources property instead.")]
[Browsable(false)]
public ReportCollection Reports { get; }

Property Value

ReportCollection

TocPosition

Gets or sets the ReportBookTocPosition for the Table of Contents in the Report Book.

Declaration

cs-api-definition
public ReportBookTocPosition TocPosition { get; set; }

Property Value

ReportBookTocPosition

TocReportSource

Gets or sets the ReportSource for the Table of Contents report.

Declaration

cs-api-definition
public ReportSource TocReportSource { get; set; }

Property Value

ReportSource

Operators

implicit operator ReportSource(ReportBook)

TODO: Add documentation.

Declaration

cs-api-definition
[Obsolete("The implicit Telerik.Reporting.ReportBook to Telerik.Reporting.ReportSource conversion is now obsolete. Please use a Telerik.Reporting.InstanceReportSource object instead. For more information, please visit: https://www.telerik.com/support/kb/reporting/general/q2-2012-api-changes-reportsources.aspx#reportprocessor.")]
public static implicit operator ReportSource(ReportBook reportBook)

Parameters

reportBook

ReportBook

Returns

ReportSource