ActiveReports.PdfExport Request technical support
FitWindow Property
See Also  Example


Gets or sets a value indicating whether to resize the document's window to fit the size of the first displayed page.

Syntax

Visual Basic (Declaration) 
Public Property FitWindow As Boolean
Visual Basic (Usage)Copy Code
Dim instance As PdfDocumentOptions
Dim value As Boolean
 
instance.FitWindow = value
 
value = instance.FitWindow
C# 
public bool FitWindow {get; set;}

Return Value

Boolean.  The default value is False.

Example

C#Copy Code
privateAvoidAbtnExport_Click(objectAsender,ASystem.EventArgsAe)
{
AAAArptDataDynamicsArptA=AnewArptDataDynamics();
AAAADataDynamics.ActiveReports.Export.Pdf.PdfExportApA=AnewADataDynamics.ActiveReports.Export.Pdf.PdfExport();
AAAAp.Options.FitWindowA=Atrue;
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
AAAAWithAp.Options
AAAAAAAA.FitWindowA=ATrue
AAAAEndAWith
AAAArpt.Run()
AAAAMe.Viewer1.DocumentA=Arpt.Document
AAAAp.Export(rpt.Document,AApplication.StartupPathA&A"\p.pdf")
EndASub

See Also