Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using Foxpro 2.5 Reports in Visual Foxpro 6.0
Message
From
09/10/2003 09:45:47
Joel Whitehead
Ccs Central Computer Services Inc.
Thunder Bay, Ontario, Canada
 
 
To
09/10/2003 02:41:35
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00836064
Message ID:
00836814
Views:
15
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
Previous
Reply
Map
View

Click here to load this message in the networking platform