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


document
The ActiveReports object to export.
filePath
The file name and path to which to save the PDF file.
pageRange
A range of page numbers. Ranges are indicated by the use of a hyphen between the starting and ending page numbers in the range. Single pages may also be included. Each range or single page is separated by a comma.
Exports a range of pages from the specified document to a PDF file.

Syntax

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

Parameters

document
The ActiveReports object to export.
filePath
The file name and path to which to save the PDF file.
pageRange
A range of page numbers. Ranges are indicated by the use of a hyphen between the starting and ending page numbers in the range. Single pages may also be included. Each range or single page is separated by a comma.

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",A"1-3");
}
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",A"1-3")
EndASub

See Also