ReportWriter API
21 Jul 20161 minute to read
Constructors
|
Name |
Description |
|
ReportWriter() |
Initializes a new instance of the ReportWriter. |
|
ReportWriter(string) |
Initializes a new instance of the ReportWriter with the specified path of the report. |
|
ReportWriter(stream) |
Initializes a new instance of the ReportWriter with the stream of the report. |
|
ReportWriter(string, ReportDataSourceCollection) |
Initializes a new instance of the ReportWriter with the specified path of the report and data source collection. |
|
ReportWriter(stream, ReportDataSourceCollection) |
Initializes a new instance of the ReportWriter with the stream of the report and data source collection. |
Properties
|
Property Name |
Description |
|
DataSources |
Gets or sets the data source collection. |
|
ReportPath |
Gets or sets the report path (file name of the report with its full path). |
|
ReportProcessingMode |
Gets or sets the processing mode (either local or remote). |
|
ReportServerCredential |
Gets or sets the Report Server credential. |
|
ReportServerFormsCredential |
Gets or sets the Report Server form credential. This is used to export SQL Azure RDL reports. |
|
ReportServerUrl |
Gets or sets the ReportServerURL. |
Methods
|
Name |
Description |
|
GetDataSetNames() |
Returns the names of the data set as IList <string>. |
|
GetParameters() |
Returns the parameters of the report as ReportParameterInfoCollection. |
|
SetParameters(IEnumerable<ReportParameters>) |
Sets the parameters of the report. |
|
LoadReport(stream) |
Loads the report with the specified stream that contains the RDL contents. |
|
Save(string,writer type) |
Saves the report as a PDF, Word, Excel, PPT and HTML documents in the mentioned path. |
|
Save(stream) |
Saves the report as a PDF, Word, Excel, PPT and HTML documents in the stream. |
Events
|
Events |
Description |
|
ReportError |
This event is triggered when Report throws Error. |
|
ExportCompleted |
This event is triggered when export is completed. |
|
SubreportProcessing |
This event is triggered when the report is RDLC and contains with subreport. |