ActiveReports.PdfExport Request technical support
Export(Document,String) Method
See Also  Example


document
The ActiveReports object to export.
filePath
The file name and path to which to save the PDF file.
Exports the specified document to a PDF file.

Syntax

Visual Basic (Declaration) 
Overloads Public Sub Export( _
   ByVal document As Document, _
   ByVal filePath As String _
) 
Visual Basic (Usage)Copy Code
Dim instance As PdfExport
Dim document As Document
Dim filePath As String
 
instance.Export(document, filePath)
C# 
public void Export( 
   Document document,
   string filePath
)

Parameters

document
The ActiveReports object to export.
filePath
The file name and path to which to save the PDF file.

Example

C#Copy Code
privateAvoidAbtnExport_Click(objectAsender,ASystem.EventArgsAe)
{
AAAArptDataDynamicsArptA=AnewArptDataDynamics();
AAAADataDynamics.ActiveReports.Export.Pdf.PdfExportApA=AnewADataDynamics.ActiveReports.Export.Pdf.PdfExport();
AAAArpt.Run();
AAAAthis.arv.DocumentA=Arpt.Document;
AAAAp.Export(rpt.Document,AApplication.StartupPathA+A"\\p.pdf");
}
Visual BasicCopy Code
PrivateASubAbtnExport_Click(ByValAsenderAAsASystem.Object,AByValAeAAsASystem.EventArgs)AHandlesAButton2.Click
AAAADimArptAAsANewArptDD
AAAADimApAAsANewADataDynamics.ActiveReports.Export.Pdf.PdfExport
AAAArpt.Run()
AAAAMe.Viewer1.DocumentA=Arpt.Document
AAAAp.Export(rpt.Document,AApplication.StartupPathA&A"\p.pdf")
EndASub

See Also