ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Viewer.Win Assembly / GrapeCity.ActiveReports.Viewer.Win Namespace / Viewer Class / Export Method / Export(IDocumentExport,FileInfo) Method
An object that implements GrapeCity.ActiveReports.Export.IDocumentExport interface, providing export functionality.
The System.IO.FileInfo object representing the file to which the report will be exported. The file extension should match the format specified by the filter.
Example

In This Topic
    Export(IDocumentExport,FileInfo) Method
    In This Topic
    Exports the currently loaded report to the specified file using the given 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
    An object that implements GrapeCity.ActiveReports.Export.IDocumentExport interface, providing export functionality.
    file
    The System.IO.FileInfo object representing the file to which the report will be exported. The file extension should match the format specified by the filter.
    Remarks
    This method exports the entire report. The export process is determined by the capabilities of the specified filter, which includes handling various export formats and their respective options.
    Example
    // Assuming 'viewer' is your Viewer control instance
    var pdfExport = new PdfExport();
    var exportFilePath = new FileInfo("path/to/your/exportedFile.pdf");
    viewer.Export(pdfExport, exportFilePath);
    See Also