Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dos printing using Generic Text Driver
Message
From
23/05/2001 14:16:48
 
 
To
23/05/2001 09:45:18
Rakesh Pahwa
Symco Software P. Ltd.
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00510317
Message ID:
00510514
Views:
17
hi Rakesh

use the following code...

set cons off
set printer to "filename" &&make up a print file name for yourself
set print on
*use ? to add your info to the file. you can also add in all printer control codes
set print off
set printer to
if file("filename")
DECLARE INTEGER CopyFile IN KERNEL32.DLL ;
STRING @SourceFileName, ;
STRING @DestFileName, ;
INTEGER bFailIfExists
if ldmp &&ldmp is a var saying if dm printer is local
CopyFile("filename","LPT1:",0) &&send output to local dm printer
else &&dm printer is on the network
CopyFile("filename",&dmpath,0) &&send output to the path of your dm printer
endi
set cons on
else
messagebox('Printer file was not created...',0+48+0,'Printer Error....')
endi

i find that using the epson fx-80 printer driver is almost universally understood by dm printers. you need to set up an fx-80 driver on each machine printing to the dm printer

if you have problems
email me
jcmca@flashmail.com
endi

hth
john
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform