Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Printing with ??? in VFP?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00510398
Message ID:
00510521
Views:
15
This message has been marked as a message which has helped to the initial question of the thread.
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform