General information
Category:
Reports & Report designer
Along these same lines...
I have been doing battle with the WinAPI CopyFile() function. It is nice to send a previously printed report to a printer at a specific time/date etc without the flash of the DOS box that you get with the DOS copy command. However.. I can't get the function to accept any destination other than 'LPT1:'.
No problems declaring the function as directed in the download section. Then I try:
CopyFile('c:\mydir\myfile.txt','LPT1:',0) and all is well.
If I try:
CopyFile('c:\mydir\myfile.txt','PRN:',0) the function returns a value of 2 - but no printing occurs
My preference woudl be to set the printer with
SET PRINTER TO NAME mypriter
and then call CopyFile with the PRN: function.
Any hints would be appreciated. Thanks in advance.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only