I am trying to email a report as an Excel Attachment file. My code is as follows:
objExportOptions.DestinationType = 2 'crEDTEMailAMPI
objExportOptions.MailToList = vAddress
objExportOptions.MailSubject = "Report file requested from the system"
objExportOptions.MailMessage = "Here is the document..."
objExportOptions.FormatType = 21
It looks like it should work but it errors out at DestinationType = 2 saying the object doesn't support this function. I know for a fact that it works fine with DestinationType = 1 (DiskFileExport) and I believe Crystal 8.5 supports DestinationType = 2. So, why is it bombing on me with 2?? Does anyone have any idea?
Thanks a bunch!!
objExportOptions.DestinationType = 2 'crEDTEMailAMPI
objExportOptions.MailToList = vAddress
objExportOptions.MailSubject = "Report file requested from the system"
objExportOptions.MailMessage = "Here is the document..."
objExportOptions.FormatType = 21
It looks like it should work but it errors out at DestinationType = 2 saying the object doesn't support this function. I know for a fact that it works fine with DestinationType = 1 (DiskFileExport) and I believe Crystal 8.5 supports DestinationType = 2. So, why is it bombing on me with 2?? Does anyone have any idea?
Thanks a bunch!!