Class ReportWriter
ReportWriter class to Export the Report.
Implements
Inherited Members
Namespace: Syncfusion.EJ.ReportWriter
Assembly: Syncfusion.EJ.ReportViewer.dll
Syntax
[Obsolete("This Report Writer has been deprecated and component is no longer in active development. Switch to our next generation Bold Report Writer component. https://help.boldreports.com/aspnet-mvc/report-writer/")]
public class ReportWriter : WriterBase, IDisposable
Constructors
ReportWriter()
Initializes a new instance of the ReportWriter class.
Declaration
public ReportWriter()
ReportWriter(Stream)
Initializes a new instance of the ReportWriter class.
Declaration
public ReportWriter(Stream rdlStream)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | rdlStream |
ReportWriter(Stream, ReportDataSourceCollection)
Initializes a new instance of the ReportWriter class.
Declaration
public ReportWriter(Stream rdlStream, ReportDataSourceCollection reportDataSources)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | rdlStream | |
ReportDataSourceCollection | reportDataSources |
ReportWriter(String)
Initializes a new instance of the ReportWriter class.
Declaration
public ReportWriter(string rdlFilename)
Parameters
Type | Name | Description |
---|---|---|
System.String | rdlFilename | The filename of the report with its full path |
ReportWriter(String, ReportDataSourceCollection)
Initializes a new instance of the ReportWriter class.
Declaration
public ReportWriter(string rdlFilename, ReportDataSourceCollection reportDataSources)
Parameters
Type | Name | Description |
---|---|---|
System.String | rdlFilename | The filename of the report with its full path |
ReportDataSourceCollection | reportDataSources |
Methods
Dispose()
Disposes all the unmanaged objects, releases common resources.
Declaration
public void Dispose()
LoadReport(ReportDefinition)
Loads a report definition from the locally modified report using a Syncfusion.RDL.DOM.ReportDefinition
Declaration
public void LoadReport(ReportDefinition reportDefinition)
Parameters
Type | Name | Description |
---|---|---|
ReportDefinition | reportDefinition | A Syncfusion.RDL.DOM.ReportDefinition class that contains the report definition for a report |
RaiseSubReportProcessingEvent(SubreportProcessingEventArgs)
RaiseSubReportProcessingEvent
Declaration
protected virtual void RaiseSubReportProcessingEvent(SubreportProcessingEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
SubreportProcessingEventArgs | e | An Syncfusion.Windows.Reports.SubreportProcessingEventArgs that contains the event data. |
ReportModel_ReportException(Object, ReportWriter.ReportErrorEventArgs)
Occurs when error in report.
Declaration
protected void ReportModel_ReportException(object sender, ReportWriter.ReportErrorEventArgs arg)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The source of the event. |
ReportWriter.ReportErrorEventArgs | arg | An ReportErrorEventArgs that contains the event data. |
Save(Stream, WriterFormat)
Exports the report as a PDF document
Declaration
public void Save(Stream stream, WriterFormat format)
Parameters
Type | Name | Description |
---|---|---|
System.IO.Stream | stream | The stream where the Pdf document to be saved |
WriterFormat | format | The writer format to be saved |
Save(String, WriterFormat)
Exports the report as a PDF document
Declaration
public void Save(string filename, WriterFormat format)
Parameters
Type | Name | Description |
---|---|---|
System.String | filename | The name of the Pdf file to be saved |
WriterFormat | format | The writer format to be saved |
Save(String, WriterFormat, HttpResponse)
Saves the document into a HTTP response stream.
Declaration
public void Save(string fileName, WriterFormat format, HttpResponse response)
Parameters
Type | Name | Description |
---|---|---|
System.String | fileName | File name to save the Report |
WriterFormat | format | Format to save the Report |
System.Web.HttpResponse | response | The HTTP response stream object. |
Events
ExportCompleted
Occurs when export report completed.
Declaration
public event ReportWriter.ExportByteCompletedEventHandler ExportCompleted
Event Type
Type | Description |
---|---|
ReportWriter.ExportByteCompletedEventHandler |
ReportError
Occurs when error in report.
Declaration
public event ReportWriter.ReportErrorHandler ReportError
Event Type
Type | Description |
---|---|
ReportWriter.ReportErrorHandler |
SubreportProcessing
Occurs when SubreportProcessing.
Declaration
public event SubreportProcessingEventHandler SubreportProcessing
Event Type
Type | Description |
---|---|
SubreportProcessingEventHandler |