ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Viewer.Win Assembly / GrapeCity.ActiveReports.Viewer.Win Namespace / Viewer Class / Export Method / Export(IDocumentExport,Stream) Method
An object that implements GrapeCity.ActiveReports.Export.IDocumentExport interface, providing export functionality.
The System.IO.Stream to which the report will be exported. The stream must be writable.
Example

In This Topic
    Export(IDocumentExport,Stream) Method
    In This Topic
    Exports the currently loaded report to the specified stream using the given export filter.
    Syntax
    'Declaration
     
    Public Overloads Sub Export( _
       ByVal filter As IDocumentExport, _
       ByVal stream As Stream _
    ) 
    public void Export( 
       IDocumentExport filter,
       Stream stream
    )

    Parameters

    filter
    An object that implements GrapeCity.ActiveReports.Export.IDocumentExport interface, providing export functionality.
    stream
    The System.IO.Stream to which the report will be exported. The stream must be writable.
    Remarks
    This method exports the entire report unless a specific page range is set in subsequent calls or configurations. The export process is determined by the capabilities of the specified filter, which includes handling various export formats and their respective options.
    Example
    Here is an example of export report to pdf file:
    using (var stream = new MemoryStream())
    {
    	var pdfExport = new PdfExport();
    	viewer.Export(pdfExport, stream);
    	// Use the stream containing the exported report
    }
    See Also