Microsoft Word Suite
316
[row integer] Optional. The label row for a single label. Not valid if single label is false.
[column integer] Optional. The label column for a single label. Not valid if single label is false.
Example
This example prints a page of Avery 5664 mailing labels, using the specified address.
set addr to "Denise Smith" & return & "123 Skye St." & return ¬
& "OurTown, WA 98107"
print out mailing label mailing label object name "5664" address addr
Command: print preview
Toggles the view to or from print preview.
Note The do print preview property can be set to true or false to switch to or from print preview,
respectively. You can also change the view by setting the view type property for the view object to
print preview view.
Syntax
print preview document Required. An expression that returns a document object.
Example
This example switches the active document to print preview if it's currently in some other view.
if do print preview is false then
print preview active document
end if
Command: protect
Protects the specified document from changes. When a document is protected, the user can make
only limited changes, such as adding annotations, making revisions, or completing a form.
Note If the document is already protected when you use this method, an error occurs.
Syntax
protect document Required. An expression that returns a document object.
protection type enumeration Required. The protection type for the specified document. Can be
one of the following: allow only comments, allow only form fields, allow only revisions, or
do document protection.
[no reset Boolean] Optional. False to reset form fields to their default values. True to retain the
current form field values if the specified document is protected. If protection type isnt allow
only form fields, the no reset argument is ignored.
[password Unicode text] Optional. The password required to unprotect the specified
document.