ActiveReports 19 .NET Edition
MESCIUS.ActiveReports.Viewer.Win Assembly / GrapeCity.ActiveReports.Viewer.Win Namespace / Viewer Class / Export Method / Export(IDocumentExport,FileInfo,String) 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.
A string specifying the range of pages to be exported. The format of the range is a comma-separated list of page numbers or page ranges. If an empty string is provided, the entire report is exported.
Example

In This Topic
    Export(IDocumentExport,FileInfo,String) Method
    In This Topic
    Exports the specified page range of 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, _
       ByVal pageRange As String _
    ) 
    public void Export( 
       IDocumentExport filter,
       FileInfo file,
       string pageRange
    )

    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.
    pageRange
    A string specifying the range of pages to be exported. The format of the range is a comma-separated list of page numbers or page ranges. If an empty string is provided, the entire report is exported.
    Remarks
    This method allows for selective export of pages, which can be useful when dealing with large reports or when only a specific section of a report is needed in the exported document.
    Example
    Here is an example of using an export current report to pdf file:
    var pdfExport = new PdfExport();
    var exportFile = new FileInfo("report.pdf");
    viewer.Export(pdfExport, exportFile, "1,3,5");
    See Also