ActiveReports.PdfExport Request technical support
CenterWindow Property
See Also  Example


Gets or sets a value which indicates whether to position the document's window in the center of the screen in the initial view when the document is opened in a PDF reader.

Syntax

Visual Basic (Declaration) 
Public Property CenterWindow As Boolean
Visual Basic (Usage)Copy Code
Dim instance As PdfDocumentOptions
Dim value As Boolean
 
instance.CenterWindow = value
 
value = instance.CenterWindow
C# 
public bool CenterWindow {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.CenterWindowA=Atrue;
AAAAp.Options.DisplayTitleA=Atrue;
AAAAp.Options.HideMenubarA=Atrue;
AAAAp.Options.HideToolbarA=Atrue;
AAAAp.Options.HideWindowUIA=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.CenterWindowA=ATrue
AAAAAAAA.DisplayTitleA=ATrue
AAAAAAAA.HideMenubarA=ATrue
AAAAAAAA.HideToolbarA=ATrue
AAAAAAAA.HideWindowUIA=ATrue
AAAAEndAWith
AAAArpt.Run()
AAAAMe.Viewer1.DocumentA=Arpt.Document
AAAAp.Export(rpt.Document,AApplication.StartupPathA&A"\p.pdf")
EndASub

See Also