Mensaje
General information
Foro:
Visual FoxPro
Category:
Informes & Diseñador de informes
Miscellaneous
ID de la conversación:
00524102
ID del mensaje:
00524175
Views:
20
>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


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Responder
Mapa
Ver