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