General information
Title:
How to put a file to print ?
Hey all,
I created a file with the command "Report Form MyReport.frx to file C:\MyApp\MyReport.txt" and now I need to print it (I do not print directly from the report form command for a lot of reasons...).
Ok, I do the following:
> Report Form MyReport.frx to file C:\MyApp\MyReport.txt
> cFileContent = FileToStr("C:\MyApp\MyReport.txt")
> ??? cFileContent
> Set Printer To && To end the print job
The problem is: Deppending on the file contents (cFileContent), the Visual FoxPro returns the "syntax error" error.
So I would like to know how I can send the file C:\MyApp\MyReport.txt directly to the printer (without using the ShellExecute function, please :))
Thanks!!!
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