ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Viewer.Wpf Assembly / GrapeCity.ActiveReports.Viewer.Wpf Namespace / Viewer Class / Export Method / Export(IDocumentExport,Stream,String) Method
The export filter to use.
The stream to export to.
The page range to export. The format of the range is a comma-separated list of page numbers "2,5,7" or page ranges "3-5". If an empty string is provided, the entire report is exported.
Example

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

    Parameters

    filter
    The export filter to use.
    stream
    The stream to export to.
    pageRange
    The page range to export. The format of the range is a comma-separated list of page numbers "2,5,7" or page ranges "3-5". If an empty string is provided, the entire report is exported.
    Example
    An example of export report to pdf file:
    using (var memoryStream = new MemoryStream())
    {
    	var pdfExport = new PdfExport();
    	viewer.Export(pdfExport, memoryStream, "1,5");
    	// The memoryStream contains the first and the fifth pages of the report exported as a PDF.
    }
    See Also