Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to put a file to print ?
Message
From
05/05/2003 10:55:59
Arlei Silva
Chevron Oronite Brasil Ltda.
Capuava, Brazil
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
How to put a file to print ?
Miscellaneous
Thread ID:
00784942
Message ID:
00784942
Views:
49
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
Map
View

Click here to load this message in the networking platform