bottom
Great WordTips!
         
Your e-mail address is safe!
Close Note

Tips.Net > WordTips Home > Printing > Printing a Box Using PostScript

Printing a Box Using PostScript

Summary: If you have a PostScript printer, here's code you can use to print a box on a page of your document. (This tip works with Microsoft Word 6, Word 95, Word 97, Word 2000, Word 2002, and Word 2003.)

If you are using a PostScript printer, you can use the Print field code to print a box anywhere on the page. This field can be added anywhere within your document, and affects the current page only. If you want it to affect every page, you can place the field code in the header or footer. To insert the field braces, press Ctrl+F9. With the insertion point between the braces, type the following as one long line:

Print \p page " /Lsize 1 def /Left 5 def /Top 6.5 def
/WidthBox 1.5 def /HeightBox 2 def /BeginX Left 72 mul def
/BeginY 11 Top sub 72 mul def Lsize setlinewidth BeginX
BeginY moveto WidthBox 72 mul 0 rlineto 0 HeightBox 72 mul
neg rlineto WidthBox 72 mul neg 0 rlineto closepath stroke "

There are a few variables in this code which you should adjust. These are the values assigned to Lsize, Left, Top, WidthBox, and HeightBox. Lsize represents the thickness, in points, of the actual line used to draw the border. The values right after the variable names Left and Top represent the number of inches to leave from the paper edges to the top left corner of the box. The values after the variables WidthBox and HeightBox represent the width and height of the box, respectively, in inches.

Tip #463 applies to Microsoft Word versions: 6 | 95 | 97 | 2000 | 2002 | 2003


Great Idea! Uncover the many ways you can master the full potential of printing your documents. WordTips: Printing and Printers can help you get the most from both the printed page and your printer.

Helpful Links

Ask a Word Question
Make a Comment

Tips.Net Home
Vital News Home

WordTips FAQ
WordTips Premium

Learn Access Now

Beauty Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Pet Tips
Word2007 Tips
WordTips

Advertise on the
WordTips Site

 

Great Info!

Get tips like this every week in WordTips, a free productivity newsletter. Enter your e-mail address and click "Subscribe."
     
(Your e-mail address will never be shared with anyone, ever.)