General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only