Text Doesn't Print When FileMacPageSetup Command Is UsedLast reviewed: November 17, 1997Article ID: Q127786 |
The information in this article applies to:
SYMPTOMSWhen 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.
CAUSEThe 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.
WORKAROUNDUse 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.)
STATUSMicrosoft is researching this problem, and we will post new information here in the Microsoft Knowledge Base as it becomes available.
|
Additional query words: WordBasic Macro
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |