Click to See Complete Forum and Search --> : Automatically fill subject when export to MAPI


jc1977
February 24th, 2006, 01:22 AM
Hi,
Can anyone tell me if there is a way to automatically fill in the subject field when exporting a report to MAPI in CR 9?
And/Or if there is a way to automatically add an email address to the email field when exporting to MAPI?

cheers

gamersrant
January 29th, 2008, 09:47 AM
Create a new variable with the type of MicrosoftMailDestinationOptions. like this.

Dim emopts As New MicrosoftMailDestinationOptions

then set the destination options for your export options variable equal to your new variable. like so

exopt.DestinationOptions = emopts

then you should be able to set the following values:

emopts.MailToList --To list

emopts.MailSubject --Subject Line

do all this then export the report and you should be ok.