Skip to Content
0
Former Member
May 17, 2010 at 03:15 PM

Outlook Security - crEDTEMailMAPI

93 Views

I know this is not specifically a Crystal Reports related problem, but was wondering if anyone knows how to disable/bypass the security in Outlook where it prompts to allow access when exporting a report using a MAPI client. The error message I receive is 'A program is trying to access e-mail address information stored in Outlook'. The code I am using to export the report is as below:

Me.crxReport.ExportOptions.FormatType = crEFTPortableDocFormat

Me.crxReport.ExportOptions.DestinationType = crEDTEMailMAPI

Me.crxReport.ExportOptions.MailSubject = "Contract Note"

Me.crxReport.ExportOptions.MailMessage = "Here is a contract note"

Me.crxReport.ExportOptions.MailToList = strEmailAddress

Me.crxReport.Export False

I am trying to automate a process within our system, so having to click allow everytime is slighly frustrating especially as some of the runs will require the user to click allow a hundred times!! Any suggestions would be greatly appreciated.

Edited by: MarkBrooks on May 17, 2010 5:15 PM