HOWTO: Control Spacing When Printing @...SAY'sID: Q198426 The information in this article applies to:
SUMMARYThis article describes how to control the horizontal and vertical spacing of @...SAY commands when printed.
MORE INFORMATIONAlthough when printing an @...SAY, the coordinates are given to determine the location of the @...SAY on the printed page, the same coordinates can be in different locations depending on the font. You can use the SET PRINT FONT command to control the location of a given coordinate on a page. You should issue the SET PRINT FONT command after the SET DEVICE TO PRINTER command for it to effect the location of @...SAY coordinates. The following sample programs demonstrate this. Run the following sample programs and note the difference in the printed output. The first sample program uses the SET PRINT FONT command to set the Print Font to Courier New, 12 point. The second program sets the Print Font to Courier New, 40 point.
Sample Program 1
Sample Program 2
The SET PRINT FONT command also determines the font that @...SAY commands
use if the FONT clause is not used on the @...SAY command. This is true
whether you issue the SET PRINT FONT command either before or after the SET
DEVICE TO PRINTER command. Only if you issue the SET PRINT FONT command
after the SET DEVICE TO PRINTER command does it control the location of the
@...SAY coordinates.
NOTE: Microsoft has received unconfirmed customer reports that printer drivers can effect the spacing of @...SAY coordinates. If using the SET PRINT FONT command is not having the desired effect, try a different printer driver for your printer that is for a model that is similar or that your printer emulates.
REFERENCESVisual FoxPro Help, version 6.0; search on: "SET DEVICE"; topic: SET DEVICE command; search on: "SET PRINTER"; topic: SET PRINTER command For additional information, please see the following articles in the Microsoft Knowledge Base:
Additional query words:
|
|
Last Reviewed: January 7, 1999 © 1999 Microsoft Corporation. All rights reserved. Terms of Use. |