WD2000: WP$Y and WP$X Variables Produce Arguments Too Large (Out of Bounds) in PostScript File

ID: Q220214


The information in this article applies to:


SYMPTOMS

When you use the wp$y or wp$x variable in the PRINT field to produce a PostScript file, the drawing height or width may be too large and may cause an "out of bounds" condition.


WORKAROUND

Select the Use printer metrics to lay out document option, using the following steps:

  1. On the Tools menu, click Options.


  2. On the Compatibility tab, click to select the Use printer metrics to lay out document check box, and then click OK.



STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article.


MORE INFORMATION

PostScript drawing commands specified in a PRINT field operate only on the drawing rectangle that's defined by a group command. Word also defines variables (for example, wp$y and wp$x) for use with the PostScript commands specified in a PRINT field. Values represented by the variables are in points, which is the standard PostScript unit.

Variable

Specifies

wp$y

The drawing height of the page, paragraph, row, or cell that the PRINT field is located in, depending on the Group argument used. If the "\p pic" argument is used, "wp$y" refers to the drawing height of the next picture before the end of the paragraph containing the PRINT field.

wp$x

The drawing width of the page, paragraph, row, or cell that the PRINT field is located in, depending on the Group argument used. If the "\p pic" argument is used, "wp$x" refers to the drawing width of the next picture before the end of the paragraph containing the PRINT field.

For more information about the PRINT field field codes, click Microsoft Word Help on the Help menu, type "Print field" in the Office Assistant or the Answer Wizard, and then click Search to view the topics returned.

Additional query words:


Keywords          : kbdta wd2000 
Version           : WINDOWS:2000
Platform          : WINDOWS 
Issue type        : kbbug 

Last Reviewed: May 13, 1999