Printing Reports Created w/ Question Marks in FP for WinLast reviewed: May 20, 1996Article ID: Q99542 |
The information in this article applies to:
You may have reports (commonly xBASE-programmed) that used to print correctly but now do not align properly. This problem may occur because of the use of proportional fonts in Windows. The following two methods allow FoxPro for Windows to print reports that are created using ? commands and also send escape codes to the printer.
Method If You Previously Used FoxPro for MS-DOSNOTE: For the following method to work correctly, you must have had FoxPro 2.0 or 2.5 for MS-DOS previously installed and have an existing 2.0 or 2.5 printer driver in the current resource file. Loading the printer driver provides hooks into the GENPD.APP program, which is used for MS-DOS-style printing. The GENPD.APP program is not available with Visual FoxPro.
SET DEVICE TO SCREEN SET PRINTER TO SET PDSETUP TO "hpcompress" SET PRINT ON ? _pdparms(15) && This is an example of using _PDPARMs and && escape codes to control printing attributes. && This is for turning italics on. ?"Hello" ? chr(27)+"(s16.66H" && This is an example of sending a control && sequence directly. ?"There" EJECT SET PRINTER TO SET LIBRARY TO SET PDSETUP TO Method If You Use Only FoxPro for Windows or Visual FoxPro for WindowsIf you do not have access to FoxPro for MS-DOS and its drivers, you can accomplish the same result by doing either of the following:
|
Additional reference words: vFoxMac 3.00b VFoxWin 3.00 FoxWin 2.50 2.50a
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |