Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using Foxpro 2.5 Reports in Visual Foxpro 6.0
Message
De
09/10/2003 09:45:47
Joel Whitehead
Ccs Central Computer Services Inc.
Thunder Bay, Ontario, Canada
 
 
À
09/10/2003 02:41:35
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00836064
Message ID:
00836814
Vues:
12
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
Fil
Voir

Click here to load this message in the networking platform