Report
Represents the base class for any report in Telerik Reporting.
All reports created with Telerik Reporting inherit from the Report class. The Report comprises of one or more report sections which contain report items.
Definition
Namespace:Telerik.Reporting
Assembly:Telerik.Reporting.dll
Syntax:
[ToolboxBitmap(typeof(Report), "Resources.Report.bmp")]
public class Report : ReportItemBase, IToggleVisibilityTarget, IActionTarget, IDataItem, IDataFlow, IDataSourceContainer, IReportDocument
Inheritance: objectReportObjectReportItemBaseReport
Implements:
Inherited Members
Constructors
Properties
AutoRun
bool
Gets or sets a value indicating whether the report should be rendered automatically upon initial preview.
public bool AutoRun { get; set; }
A boolean representing the AutoRun behavior. The default value is true.
When the report is referenced in a SubReport this property will not be respected.
Culture
CultureInfo
Gets or sets the culture information associated with the report.
public CultureInfo Culture { get; set; }
A CultureInfo representing the culture supported by the Report.
DataSource
object
Gets or sets the data source that the Report is displaying data for.
[TypeConverter(typeof(DataSourceConverter))]
public object DataSource { get; set; }
An object that functions as a data source.
Implements:
Telerik Reporting includes dedicated data source components that enable retrieving and feeding all data items from various sources. See all the available data source components at: https://docs.telerik.com/reporting/designing-reports/connecting-to-data/data-source-components/overview
For convenience, all the objects applicable to the DataSource property can be directly assigned to this DataSource property. At runtime, the report engine will wrap them in an ObjectDataSource to resolve the actual data.
DocumentName
string
Gets or sets a string representing the name of the report document.
public string DocumentName { get; set; }
A string representing the document name. The default value is the name of the Report this property belongs to.
Implements:
The value of this property is used to suggest a file name when exporting a report to one of the available export formats. This property value is not used when exporting from the standalone report designer. The report filename will be used instead.
Also used to specify the report name (root node) in the document map.
A string that starts with "=" is interpreted as an expression to evaluate the document name; otherwise it is interpreted as a literal string. The expression cannot contain any data fields.
ErrorMethodName
string
Gets or sets the name of the method that should be called when the Error event is triggered.
[AIAssistantExclude("")]
public string ErrorMethodName { get; set; }
A string value identifying the name of the method from the source assembly.
ExternalStyles
ICollection<string>
TODO: Add documentation.
[Obsolete("Please use ExternalStyleSheets property instead.")]
[Browsable(false)]
public ICollection<string> ExternalStyles { get; }
Gets the collection of ExternalStyleSheets for the report.
[TypeConverter("Telerik.Reporting.Design.ExternalStyleSheetCollectionConverter, Telerik.Reporting.Design, Version=20.2.26.1007, Culture=neutral, PublicKeyToken=a9d7983dfcc261be")]
public ExternalStyleSheetCollection ExternalStyleSheets { get; }
Gets a FilterCollection that defines the filter expression(s) for the Report
public FilterCollection Filters { get; }
A FilterCollection that contains the Filter objects for the Report
Filter expressions limit the data that is displayed to the user after the data is retrieved from the data source.
Gets a GroupCollection that defines the groups for the Report
public GroupCollection Groups { get; }
A GroupCollection that contains the Group objects for the Report
Grouping is used to gather all rows that match certain grouping criteria together. Grouping criteria is defined by adding one or more Grouping objects to a Group.
NeedDataSourceMethodName
string
Gets or sets the name of the method that should be called when the NeedDataSource event is triggered.
[AIAssistantExclude("")]
public string NeedDataSourceMethodName { get; set; }
A string value identifying the name of the method from the source assembly.
Gets or sets a PageNumberingStyle for the Report.
public PageNumberingStyle PageNumberingStyle { get; set; }
A PageNumberingStyle representing the page numbering style. The default value is Continue
When the report is part of a ReportBook, use this property to indicate whether the page numbering / count should start from 1 or continue from the last page number / count of the previous report.
Gets an instance of ReportEngineSettings containing report-specific settings that will be respected by the reporting engine during the processing and rendering stage of the report lifecycle.
public ReportEngineSettings ReportEngineSettings { get; }
Gets a collection of report parameters.
public ReportParameterCollection ReportParameters { get; }
Gets a collection containing report-specific export rendering settings.
public RenderingSettingsCollection RuntimeSettings { get; }
When the report is part of a ReportBook this property will be respected for the first report in the book only.
SkipBlankPages
bool
Gets or sets a value indicating whether pages without significant content should be output.
public bool SkipBlankPages { get; set; }
A boolean representing the SkipBlankPages behavior. The default value is true.
When the report is part of a ReportBook this property will be respected for the corresponding report in the book.
TODO: Add documentation.
[Browsable(false)]
[Obsolete("Please use Sortings property instead.")]
public SortingCollection Sorting { get; }
Gets a SortingCollection that defines the sort column(s), and their type and order for the Report
public SortingCollection Sortings { get; }
A SortingCollection that contains the Sorting objects for the Report
Sort expressions sort the data that is displayed to the user after the data is retrieved from the data source.
Gets the StyleSheet associated with the report.
public StyleSheet StyleSheet { get; }
A StyleSheet object representing a collection of style rules.
The StyleSheet property of a report can be used to define various types of styles for use by the report items.
Methods
Gets all IDataSource instances available in the report definition, regardless if they are referenced by a data item or a report parameter.
public IEnumerable<IDataSource> GetDataSources()
IEnumerable<IDataSource>
A read-only collection of IDataSource instances.
TODO: Add documentation.
protected virtual void OnError(object sender, ErrorEventArgs e)
TODO: Add documentation.
protected virtual void OnNeedDataSource(object sender, EventArgs e)
Events
Occurs when an error is raised during the processing of the report.
public event ErrorEventHandler Error
NeedDataSource
EventHandler
Occurs when the processing of the report processing instance (i.e., Report/> instance) begins and this instance has no DataSource property set.
public event EventHandler NeedDataSource
The event is hooked on the definition Report instance, but the sender object in the event handler is the processing Report/> instance. The processing instance of the report inherits its DataSource from the definition instance, but if neither has DataSource set, this event is raised.
Operators
TODO: Add documentation.
[Obsolete("The implicit Telerik.Reporting.Report 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(Report report)