ASP.NET Core 6.3.16
Demos Support Blog Download
Show / Hide Table of Contents
PDF

Class ReportWriter

ReportWriter class to Export the Report.

Inheritance
System.Object
BoldReports.Writer.WriterBase
ReportWriter
Implements
System.IDisposable
Namespace: BoldReports.Writer
Assembly: BoldReports.Web.dll
Syntax
public class ReportWriter : WriterBase, IDisposable

Constructors

ReportWriter()

Initializes a new instance of the ReportWriter class.

Declaration
public ReportWriter()
Remarks

Contains all the properties and events to process the export of the report.

ReportWriter(Stream)

Initializes a new instance of the ReportWriter class.

Declaration
public ReportWriter(Stream rdlStream)
Parameters
Type Name Description
System.IO.Stream rdlStream

Specifies the report stream to the ReporViewer to load report.

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

Specifies the report stream to the ReporViewer to load report.

BoldReports.Web.ReportDataSourceCollection reportDataSources

A ReportDataSourceCollection object that contains the collection of data sources used in the report

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

BoldReports.Web.ReportDataSourceCollection reportDataSources

A ReportDataSourceCollection object that contains the collection of data sources used in the report.

Methods

add_ExportCompleted(ReportWriter.ExportCompletedEventHandler)

Declaration
public void add_ExportCompleted(ReportWriter.ExportCompletedEventHandler value)
Parameters
Type Name Description
ReportWriter.ExportCompletedEventHandler value

add_SubreportProcessing(SubreportProcessingEventHandler)

Declaration
public void add_SubreportProcessing(SubreportProcessingEventHandler value)
Parameters
Type Name Description
SubreportProcessingEventHandler value

Dispose()

Provides a mechanism for releasing unmanaged resources.

Declaration
public void Dispose()
Remarks

It close or release unmanaged resources such as files, streams, and handles held by an instance of the class that implements this interface.

LoadReport(ReportDefinition)

Loads a report definition from the locally modified report using a BoldReports.RDL.DOM.ReportDefinition

Declaration
public void LoadReport(ReportDefinition reportDefinition)
Parameters
Type Name Description
BoldReports.RDL.DOM.ReportDefinition reportDefinition

A BoldReports.RDL.DOM.ReportDefinition class that contains the report definition for a report

RaiseSubReportProcessingEvent(SubreportProcessingEventArgs)

Declaration
protected virtual void RaiseSubReportProcessingEvent(SubreportProcessingEventArgs e)
Parameters
Type Name Description
SubreportProcessingEventArgs e

remove_ExportCompleted(ReportWriter.ExportCompletedEventHandler)

Declaration
public void remove_ExportCompleted(ReportWriter.ExportCompletedEventHandler value)
Parameters
Type Name Description
ReportWriter.ExportCompletedEventHandler value

remove_SubreportProcessing(SubreportProcessingEventHandler)

Declaration
public void remove_SubreportProcessing(SubreportProcessingEventHandler value)
Parameters
Type Name Description
SubreportProcessingEventHandler value

Save(Stream, WriterFormat)

Saves the local report as file formats like PDF, Excel, Word, HTML, CSV, XML, and more.

Declaration
public void Save(Stream stream, WriterFormat format)
Parameters
Type Name Description
System.IO.Stream stream

The stream of the report which has to be saved.

WriterFormat format

Represents the format in which the report has to be saved.

Events

ExportCompleted

Occurs when Export completed.

Declaration
public event ReportWriter.ExportCompletedEventHandler ExportCompleted
Event Type
Type Description
ReportWriter.ExportCompletedEventHandler

SubreportProcessing

Occurs when SubreportProcessing.

Declaration
public event SubreportProcessingEventHandler SubreportProcessing
Event Type
Type Description
SubreportProcessingEventHandler

Implements

System.IDisposable
In This Article
Was this page helpful? Yes No
Thank you for your feedback!
Thank you for your feedback and comments. We will rectify this as soon as possible!
An unknown error has occurred. Please try again.
×
SEND FEEDBACK REGARDING THIS TOPIC

Please provide additional information

Please provide additional information

Please provide additional information

Please provide additional information
Please provide additional information
Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved