ASP.NET MVC

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ReportWriter - ASP.NETMVC API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ReportWriter

    ReportWriter class to Export the Report.

    Inheritance
    System.Object
    WriterBase
    ReportWriter
    Implements
    System.IDisposable
    Inherited Members
    WriterBase.LoadReport(Stream)
    WriterBase.LoadSubreport(String, Stream)
    WriterBase.LoadSubreport(String, String)
    WriterBase.LoadSubreport(String, TextReader)
    WriterBase.GetDataSetNames()
    WriterBase.GetDataSources()
    WriterBase.SetDataSourceCredentials(DataSourceCredentials[])
    WriterBase.SetDataSourceCredentials(IEnumerable<DataSourceCredentials>)
    WriterBase.GetParameters()
    WriterBase.GetParametersWithValues()
    WriterBase.SetParameters(IEnumerable<ReportParameter>)
    WriterBase.ReportPath
    WriterBase.ReportProcessingMode
    WriterBase.ExportLayout
    WriterBase.DataSources
    WriterBase.Assemblies
    WriterBase.UserProfile
    WriterBase.ReportServerUrl
    WriterBase.ReportServerCredential
    WriterBase.ReportServerFormsCredential
    WriterBase.Culture
    WriterBase.ReportLanguage
    WriterBase.EnableVirtualEvaluation
    WriterBase.DisablePageSplitting
    WriterBase.PageSettings
    WriterBase.ReportingServer
    WriterBase.WordOptions
    WriterBase.ExcelOptions
    WriterBase.CsvOptions
    WriterBase.PDFOptions
    WriterBase.HTMLOptions
    WriterBase.PPTOptions
    WriterBase.ReportErrorOccurred
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    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

    Implements

    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved