Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Email
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Re: Email
Miscellaneous
Thread ID:
00229733
Message ID:
00229832
Views:
15
>I'm trying to send reports via email directly from within my application. What is the name of the Outlook property that needs to be assigned the name of the attached file? Is this the best way to email reports directly? Thanks, Shuli

There is not a property, but an attachments collection of the item.

oItem.Attachments.Add("MyFile.txt")

The only way that I know of to send reports via e-mail is to print them to a pdf file (Acrobat Exchange is required to do this) and then attach that file to an e-mail.

BTW- if you want your app to be more widely usable, don't automate Outlook- this rewuires the user to have Outlook installed. You can use MAPI to do most email functions, but better yet, use an aftermarket mail control like the one available from Mabry.
Erik Moore
Clientelligence
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform