ActiveReports Developer 7
CenterWindow Property
See Also  Example
GrapeCity.ActiveReports.Export.Pdf.v7 Assembly > GrapeCity.ActiveReports.Export.Pdf.Section Namespace > PdfDocumentOptions Class : CenterWindow Property

Glossary Item Box

True to position the document’s window in the center of the screen. Default value: false.

Syntax

Visual Basic (Declaration) 
Public Property CenterWindow As System.Boolean
C# 
public System.bool CenterWindow {get; set;}

Example

C#Copy Code
GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport p = new GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport();
p.Options.Application = "Mortimer's Reporting Software";
p.Options.Author = "Mortimer";
p.Options.CenterWindow = true;
p.Options.DisplayMode = GrapeCity.ActiveReports.Export.Pdf.Section.DisplayMode.Thumbs;
p.Options.DisplayTitle = true;
p.Options.FitWindow = true;
p.Options.HideMenubar = true;
p.Options.HideToolbar = true;
p.Options.HideWindowUI = true;
p.Options.Keywords = "annual";
VB.NETCopy Code
Dim p As New GrapeCity.ActiveReports.Export.Pdf.Section.PdfExport
With p.Options
    .Application = "Mortimer's Reporting Software"
    .Author = "Mortimer"
    .CenterWindow = True
    .DisplayMode = GrapeCity.ActiveReports.Export.Pdf.Section.DisplayMode.Thumbs
    .DisplayTitle = True
    .FitWindow = True
    .HideMenubar = True
    .HideToolbar = True
    .HideWindowUI = True
    .Keywords = "annual"

See Also