Information générale
Titre:
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!!!
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement