Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Printing with ??? in VFP?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00510398
Message ID:
00511663
Vues:
17
Thanks for the post John!
>hi Rod
>
>try this...it uses windows API and it works like a charm...
>set cons off
>set printer to "filename"
>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
>
>hth
>john
Imagination is more important than knowledge
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform