Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Print preview using ?
Message
From
25/11/2000 18:02:51
 
 
To
25/11/2000 16:07:06
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00445395
Message ID:
00445420
Views:
13
>I am converting programs developed in FOX 2.5 DOS. In the past for a print preview, I 'SET PRINTER TO preview.txt' and would print the report to the text file 'preview.txt'. I would then use MODI COMM preview.txt NOEDIT to view the report. This method works fine for a text file, but in the process I am trying to add FONT and color to the reports. Is there a way to still use the print (?) command and/or @ SAY command and SET PRINTER TO and be able to preview the file.
>

Not with the result of creating generic ASCII output, since ASCII text doesn't contain this information. In general, using a common printer definition output language such as RTF, PostScript or Adobe PDF documents will allow you to create output that can be printed (either through direct use of a PostScript printer with PostScript, or through the use of a document server application such as Word or Wordpad in the case of RTF (much of the functionality is available for RTF via various ActiveX controls; the RichTextFormat ActiveX contains both display and print methods) or Adobe's Acrobat product in the case of PDF output.)

If you elect to use Word or Wordpad to display and print your output, and are working with reports, I'd suggest looking at John Koziol's FRX2WORD class, which creates Word document output from a VFP FRX type report.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform