Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to put a file to print ?
Message
 
To
05/05/2003 10:55:59
Arlei Silva
Chevron Oronite Brasil Ltda.
Capuava, Brazil
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00784942
Message ID:
00784956
Views:
21
You could use:
TYPE C:\MyApp\MyReport.txt to print
for file created with report form... ASCII option.


>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!!!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform