Hi,
I am trying to export a report as a mail attachment. I have a VB application to do this.
I initially logon to my mail server and set the report options and then try to export the report as below
-----------------------------------------------------------
Set objSession = CreateObject("MAPI.Session"
objSession.Logon "Test", "", True, True
rep.ExportOptions.DestinationType = crEDTEMailMAPI
rep.ExportOptions.MailSubject = lblRepName
rep.ExportOptions.MailMessage = lsMessage
rep.ExportOptions.MailToList = lsRecs
rep.ExportOptions.FormatType = crEFTRichText
rep.Export (False)
--------------------------------------------------------
I then get a form asking me the number of pages to export.
As soon as I press ok I get the error
"run time error 'Request Cancelled by User' "
Even if I press cancel I get the same message.
I am quite sure that I have logged onto the mail server.
What else could be the problem?
I am using CR 8.5 with VB6
I am trying to export a report as a mail attachment. I have a VB application to do this.
I initially logon to my mail server and set the report options and then try to export the report as below
-----------------------------------------------------------
Set objSession = CreateObject("MAPI.Session"
objSession.Logon "Test", "", True, True
rep.ExportOptions.DestinationType = crEDTEMailMAPI
rep.ExportOptions.MailSubject = lblRepName
rep.ExportOptions.MailMessage = lsMessage
rep.ExportOptions.MailToList = lsRecs
rep.ExportOptions.FormatType = crEFTRichText
rep.Export (False)
--------------------------------------------------------
I then get a form asking me the number of pages to export.
As soon as I press ok I get the error
"run time error 'Request Cancelled by User' "
Even if I press cancel I get the same message.
I am quite sure that I have logged onto the mail server.
What else could be the problem?
I am using CR 8.5 with VB6