Microsoft KB Archive/46205

Printing Long Date Without Week Day Using PostScript

PSS ID Number: Q46205 Article last modified on 03-07-1997

=
========================================================= 4.00 MACINTOSH kbprint

= SUMMARY =

The following PostScript positions an updating date in long format without the weekday in Microsoft Word for the Macintosh, version 4.0. This procedure works only with a PostScript printer and is rather difficult to position (see discussion in Notes #2).

Enter the following text in Word 4.0:

.para. X Y moveto /Times-Roman findfont 12 scalefont setfont /dates [(January) (February) (March) (April) (May) (June) (July) (August) (September) (October) (November) (December)] def wp$date (/) search pop cvi 1 sub dates exch get show show pop (/) search pop show  show pop (19) show show

This information can be entered all in one paragraph or on separate lines; be sure that there are spaces between the arguments. Also, be sure to select all of the text and apply the built-in PostScript style.

= MORE INFORMATION =


 * 1) Use .para. to limit output to the next non-PostScript paragraph. Use .page. to limit output to the entire page.
 * 2) Substitute a coordinate pair for X Y in Line 2. For example, use X=0, Y=3 for a flush-left date (0 3 moveto). Because this coordinate pair defines the left side of the date, this makes centering and flush-right positioning rather difficult, as both would require you to know the exact length of the text of the date.
 * 3) In the third line, any font or font size can be substituted for /Times-Roman and 12. Make sure that the font is an actual printer font name (Helvetical won’t work; use /Helvetica).
 * 4) In the last few lines, replace occurrences of “ ” with an actual space character (created by pressing the SPACEBAR once).

KBCategory: kbprint KBSubCategory: kbformat Additional reference words: 4.00 macword macword5

= ====================================================================== =

Copyright Microsoft Corporation 1997.