Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dos printing using Generic Text Driver
Message
De
23/05/2001 14:16:48
 
 
À
23/05/2001 09:45:18
Rakesh Pahwa
Symco Software P. Ltd.
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00510317
Message ID:
00510514
Vues:
19
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform