MESCIUS.ActiveReports.Viewer.Wpf Assembly / GrapeCity.ActiveReports.Viewer.Wpf Namespace / Viewer Class / Export Method / Export(IDocumentExport,Stream) Method
The export filter to use.
The stream to export to.
Example

In This Topic
Export(IDocumentExport,Stream) 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 _
) 
 

Parameters

filter
The export filter to use.
stream
The stream to export to.
Example
An example of export report to pdf file:
using (var stream = new MemoryStream())
{
	var pdfExport = new PdfExport();
	viewer.Export(pdfExport, stream);
	// Use the stream containing the exported report
}
See Also