Microsoft Word Suite
149
To return the page setup object, use the page setup property. The following example sets the first
section in the active document to landscape orientation and then prints the document.
set orientation of page setup of section 1 of active document ¬
to
orient
landscape
print out active document
The following example sets all the margins for the document named "Sales.doc."
set pmSales to page setup of document "Sales.doc"
set left margin of pmSales to (inches to points inches 0.75)
set right margin of pmSales to (inches to points inches 0.75)
set top margin of pmSales to (inches to points inches 1.5)
set bottom margin of pmSales to (inches to points inches 1)
Properties
bottom margin
Returns or sets the distance (in points) between the bottom edge of the page and the bottom
boundary of the body text. Read/write.
chars line
Returns or sets the number of characters per line in the document grid. Read/write.
different first page header footer
True if a different header or footer is used on the first page. Read/write.
first page tray
Returns or sets the paper tray to use for the first page of a document or section. Read/write.
Can be one of the following:
printer automatic sheet feed
printer default bin
printer envelope feed
printer form source
printer large capacity bin
printer large format bin
printer lower bin
printer manual envelope feed
printer manual feed
printer middle bin
printer only bin
printer paper cassette
printer small format bin
printer tractor feed
printer upper bin
footer distance
Returns or sets the distance (in points) between the footer and the bottom of the page.
Read/write.
gutter
Returns or sets the amount (in points) of extra margin space added to each page in a document
or section for binding. Read/write.
If the mirror margins property is set to true, the gutter property adds the extra space to the
inside margins. Otherwise, the extra space is added to the left margin.