Using MAPI to send report
Posted on 2004-10-25
I have an application that pulls up a report using CRViewer. On the form that contains the CRViewer I also have a button.
Here's the code for the button:
MAPIMessages1.RecipDisplayName = "Blow,Joe"
MAPIMessages1.MsgSubject = "Subject of Email"
MAPIMessages1.MsgNoteText = "Message Text"
The code above works fine. However, I want the "Message Text" to be something else. I want to email the contents of the report as the MAPIMessages1.MsgNoteText. How do I do this? Or, is there another way to email this report with Outlook? Thanks.