Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Having a report emailed or faxed automatically
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00616373
Message ID:
00616385
Views:
18
>Hi All!
>
>I've seen this functionality on some of the apps I've come accross with. It's being able to have an option in a report to not only preview or print it, but also to be able to email it and sometimes, even to be able to fax it. For example, how would i be able to direct the report to my default email handler, and automatiacally email it? Say I'm using Outlook Express as my email handler, can i like call within VFP msimn.exe (Outlook Express exe) with some sort of parameter/s? How do i begin with this kind of project?

Hi Charles,

First of all, you need to create a file from your report, so you can e-mail it. There are couple of options:
1) The simplest, but not good - produce an ascii file from report using report form myReport to file ascii command
2) Create a PDF from your report - this involves either installing full version of Adobe (not free) or installing some third party product (some of them free, but I never looked at them)
3) Create Word or Html. There are several files in Download section to Help you with this. Frx2Word or Frx2Any

Once you have a file, the code now depends on what kind of e-mail client do you have.

There are also some classes in Download section, which can help you get started. One of them is Nigel Coates MapiMail class.

At work we use GroupWise as e-mail client. I've tried couple of solutions to automate e-mailing process, but haven't succeed so far. I guess, we now will try commercial product called IDSMail.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform