Microsoft KB Archive/42774

Using a Macro to Print Landscape and Portrait in Same Document

PSS ID Number: Q42774 Article last modified on 11-02-1994

4.00

MS-DOS

= SUMMARY =

Word Version 4.00 is not designed to print both portrait and landscape text in the same document. However, you can design a macro that switches between portrait and landscape printer drivers and then prints the corresponding portion of the document, in effect, creating a document with both portrait and landscape text. The following steps could be used:


 * 1) Create divisions within a document.
 * 2) Use the Format Division Margins command to give each division either portrait or landscape dimensions.
 * 3) Run a macro that loads the appropriate printer driver and prints the appropriate division in turn.

Following is a sample macro that will print a document with two divisions (portrait and landscape, respectively) on a Hewlett-Packard LaserJet:

pohplaser1 p 1d1-10d1 pohplaslan  1d2-10d2

Note: This is only a sample macro which works with a document with two divisions, one portrait and the other landscape, each containing 10 pages.

Please note that Word Version 5.00 automatically supports portrait and landscape printing in the same document if the printer being used supports autorotation.

KBCategory: kbother kbmacro KBSubcategory: Additional reference words: ============================================================================= Copyright Microsoft Corporation 1994.