Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing to dot matrix
Message
From
05/05/2002 11:06:52
Raoshan Kumar
Softinfo Systems Pvt. Ltd.
New Delhi, India
 
 
To
02/05/2002 19:28:27
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00538025
Message ID:
00652891
Views:
16
Hi Bouharb,

Printing to DOT MATRIX Printer from within the VFP application is easy. Just pass a DMP initialization code "@" with chr(27) and a series of ? commands. I've done this in my VFP application to print a list of customers as below :

_LMARGIN = 3
SET DEVICE TO PRINTER
SET PRINTER ON
SET CONSOLE OFF
??? CHR(27)+'@' && DMP initialisation code
??? CHR(18) && set to normal draft mode

SELECT Cust
SCAN
? ALLT(cust_name) AT 5
?? ALLT(cust_add) AT 35
?? ALLT(city) AT 60
?? ALLT(phone) AT 70
ENDSCAN


SET DEVICE TO SCREEN
SET PRINTER OFF
SET CONSOLE ON
Previous
Reply
Map
View

Click here to load this message in the networking platform