MESCIUS.ActiveReports.Viewer.Wpf Assembly / GrapeCity.ActiveReports.Viewer.Wpf Namespace / Viewer Class / Export Method / Export(IDocumentExport,FileInfo,String) Method
The export filter to use.
The file 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,FileInfo,String) 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, _
   ByVal pageRange As String _
) 
 

Parameters

filter
The export filter to use.
file
The file 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:
var pdfExport = new PdfExport();
var exportFile = new FileInfo("path/to/your/report.pdf");
viewer.Export(pdfExport, exportFile, "1,3,5");
See Also