Microsoft KB Archive/127786

-

{| The information in this article applies to:
 * width="100%"|
 * Microsoft Word for the Macintosh, versions 6.0, 6.0.1

SYMPTOMS
When you use the FileMacPageSetup WordBasic command in a macro to switch the orientation of a page, and set the .orientation argument to 1 or 0, some of the text will be truncated when you try to print. If you set ".orientation = 1" (to change from portrait to landscape), text at the top of the document will not be printed. If you set ".orientation = 0" (to change from landscape to portrait), text on the right side of the document will not be printed.

CAUSE
The FileMacPageSetup command successfully changes the page size, but it fails to change the orientation of the document. This causes the text at the top or right side of the document to go off the printable area of the page and not be printed.

WORKAROUND
Use the TogglePortrait WordBasic command (which toggles orientation from portrait to landscape, or from landscape to portrait) instead of the FileMacPageSetup command. The TogglePortrait command will successfully change the page orientation and dimensions.

(NOTE: There is no "ToggleLandscape" command. TogglePortrait is a misnomer; a better name for it would have been ToggleOrientation, which is what this macro does.)

STATUS
Microsoft is researching this problem, and we will post new information here in the Microsoft Knowledge Base as it becomes available.
 * }

-

Last reviewed: November 17, 1997

© 1998 Microsoft Corporation. All rights reserved. Terms of Use.