>Hi All!
>I want to be able to direct my report output, and maintain the formatting, to a text file that I can attach as an e-mail attachment, or open it as a word document. I've tried using the ascii command but then I lose the formatting, and the to file command give an unreadable file!
>
>Help please. I am using VFP5 but could go to 6.
>
>Many thanks in advance
>
>Derek...
To maintain exact formatting and looks you could use the Adobe PDF writer. It installs like a printer. You "print" to it and it creates a pdf file.
To email the attachment you could use Nigel's MAPI class (here in the UT downloads section) or use automation to cfontrol MS Outlook:
http://fox.wikis.com/wc.dll?Wiki~AutomationExamples~VFP