Information générale
Catégorie:
Gestionnaire de rapports & Rapports
We first use the command:
SET PRINTER TO NAME nameofprinterinwindows
to set the printer to the one we want (replace nameofprinterinwindows with the Windows name of the printer in quotes). Then, if we need to set anything on the printer such as characters per inch (CPI), we send Escape sequences directly to the printer using:
??? CHR(27)+CHR(15)
For our printer, this particular command sets it to 17 CPI. The three ? sends the CHR() codes directly to the printer. Normally the first escape sequence we send is a reset which sets the printer to its startup defaults. Printer documentation is used to figure out the escape sequences for each printer. Then the FoxPro DOS report is run from VFP with the command:
REPORT FORM reportname NOEJECT NOCONSOLE TO PRINTER
HTH,
Joel
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement