Expand Minimize
0 out of 1 rated this helpful - Rate this topic

Document.PageSetup Property

Gets or sets a PageSetup that is associated with the document.

Namespace: Microsoft.Office.Tools.Word
Assembly: Microsoft.Office.Tools.Word (in microsoft.office.tools.word.dll)

public virtual PageSetup PageSetup { get; set; }

Property Value

A PageSetup that is associated with the document.

The following code example changes the orientation of the document to landscape.

private void DocumentPageSetup()
{
    this.PageSetup.Orientation = Microsoft.Office.
        Interop.Word.WdOrientation.wdOrientLandscape;
}

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.