Microsoft KB Archive/64703

= Printing a Page Border with PostScript in Word for Windows =

Article ID: 64703

Article Last Modified on 11/16/2006

-

APPLIES TO


 * Microsoft Word 1.0 Standard Edition
 * Microsoft Word 1.1 Standard Edition
 * Microsoft Word 1.1 Standard Edition
 * Microsoft Word 2.0 Standard Edition
 * Microsoft Word 2.0a
 * Microsoft Office Word 2003
 * Microsoft Word 2.0c
 * Microsoft Word 6.0 Standard Edition
 * Microsoft Word 6.0a
 * Microsoft Word 6.0c
 * Microsoft Word 95 Standard Edition
 * Microsoft Word 95a
 * Microsoft Word 97 Standard Edition

-



This article was previously published under Q64703



SUMMARY
The following field code may be used to print a page border on a PostScript printer:

{print \p page &quot;clippath 2 setlinewidth stroke&quot;}

This particular code will use the last rectangular clipping path set by Microsoft Word for Windows and print a solid line around the path with a width (2 point) set by the Setlinewidth command.

NOTE: This example will work best for full page borders when the document has no text or has graphics formatted as absolute positioned objects (APO). You must include this sample field on each page that you want to print a border on. The field can be inserted anywhere on the page -- even in a table.

