October 1, 2001 - Hiding Pages in A Print Template
October 1, 2001|
Hiding Pages in A Print Template
Tips: October 2001
Yehuda Shiran, Ph.D.
LAYOUTRECTSonce they have been created. Hide them instead. A good way to hide
LAYOUTRECTSis to move them off the screen by using absolute positioning. You can define, for example, the style class for the
DEVICERECTelements to include the left property of
-50in. This property is ignored when the position property is unset or set to
"static."In this case the pages always start at
(0,0). When it is set to
DEVICERECTelement, the page for that
DEVICERECTelement will shift to -50 inches, which is outside the screen area.
To learn more about print templates, read Column 89 (Print Templates, Part I), Column 91 (Print Templates, Part II: TemplatePrinter), Column 92 (Print Templates, Part III: HeaderFooter), and Column 93 (Print Templates, Part IV: User Settings). Download the Microsoft print template loader.