JmichaelSR
Programmer
I have a FoxPro 2.5 program that generates a report which I would like to send as an attachment on an email. I have found that by replacing the "TO PRINTER PROMPT" in the following code with "TO FILE c:\trans.txt" a file is generated rather than a printer report.
DO CASE
CASE pb_print = 1 &&Print
SAVE SCREEN
REPORT FORM (report_name) ;
TO PRINTER PROMPT (CHANGDED THIS LINE)
RESTORE SCREEN
CLEAR READ
CASE pb_print = 2 &&Preview
The problem is that the file created is in a format that would be meaningless to the person receiving the email. I want a file that would contain information that would appear just as it would on a printed report. Any ideas on how I could do this?
Any help or suggestions would be appreciated.
Thanks,
Mike
DO CASE
CASE pb_print = 1 &&Print
SAVE SCREEN
REPORT FORM (report_name) ;
TO PRINTER PROMPT (CHANGDED THIS LINE)
RESTORE SCREEN
CLEAR READ
CASE pb_print = 2 &&Preview
The problem is that the file created is in a format that would be meaningless to the person receiving the email. I want a file that would contain information that would appear just as it would on a printed report. Any ideas on how I could do this?
Any help or suggestions would be appreciated.
Thanks,
Mike