Share via


Document.PageSetup Property

Publisher Developer Reference

Returns a PageSetup object representing a publication’s page size, page layout and paper settings. Read-only.

Syntax

expression.PageSetup

expression   A variable that represents a Document object.

Return Value
PageSetup

Remarks

You can only use the PageSetup property when printing multiple pages on a single sheet of printer paper. If the page size is greater than half the paper size, Microsoft Office Publisher will display an error.

Example

This example specifies page setup options for a publication with multiple publication pages printed on each sheet of printer paper.

Visual Basic for Applications
  Sub SetTopMargin()
    With ActiveDocument.PageSetup
        .PageHeight = InchesToPoints(5)
        .PageWidth = InchesToPoints(8)
        .MultiplePagesPerSheet = True
        .TopMargin = InchesToPoints(0.25)
        .LeftMargin = InchesToPoints(0.25)
    End With
End Sub

See Also