ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Viewer.Wpf Assembly / GrapeCity.ActiveReports.Viewer.Wpf Namespace / Viewer Class / Export Method / Export(IDocumentExport,FileInfo) Method
The export filter to use.
The file to export to.
Example

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

    Parameters

    filter
    The export filter to use.
    file
    The file to export to.
    Example
    An example of export report to pdf file:
    var pdfExport = new PdfExport();
    var exportFile = new FileInfo("path/to/your/report.pdf");
    viewer.Export(pdfExport, exportFile);
    See Also