Fax / Email a Crystal Report

T

Tanya

I'm writing an ASPX page to automate faxing of a report by exporting a
report to a PDF format and Microsoft Mail destination where I inserted
a fax number instead of an email address. This works fine if I test
it in a VB.Net windows app. But when I run it in ASPX it keeps giving
me this error:

Error detected by export DLL: MAPI services not installed or not
configured

I'm new to web development and hence must have missed something here.
Please help!

Here is my code:

Dim oRpt As ReportDocument
Dim ExpOptions As New ExportOptions
Dim destOption As New MicrosoftMailDestinationOptions

oRpt = New ReportDocument
oRpt.Load("c:\Reports\test.rpt")
ExpOptions = oRpt.ExportOptions
With destOption
.MailToList = "[GFAX:9,1111111]"
.MailSubject = "report fax"
End With

With ExpOptions
.ExportFormatType = ExportFormatType.PortableDocFormat
.FormatOptions = New PdfRtfWordFormatOptions
.ExportDestinationType =
ExportDestinationType.MicrosoftMail
.DestinationOptions = destOption
End With

oRpt.Export()

Thanks in advance for your help!
 
G

Guest

Did you resolve this, I'm having the same probelm.
(e-mail address removed)
I'm writing an ASPX page to automate faxing of a report by exporting a
report to a PDF format and Microsoft Mail destination where I inserted
a fax number instead of an email address. This works fine if I test
it in a VB.Net windows app. But when I run it in ASPX it keeps giving
me this error:

Error detected by export DLL: MAPI services not installed or not
configured

I'm new to web development and hence must have missed something here.
Please help!

Here is my code:

Dim oRpt As ReportDocument
Dim ExpOptions As New ExportOptions
Dim destOption As New MicrosoftMailDestinationOptions

oRpt = New ReportDocument
oRpt.Load("c:\Reports\test.rpt")
ExpOptions = oRpt.ExportOptions
With destOption
.MailToList = "[GFAX:9,1111111]"
.MailSubject = "report fax"
End With

With ExpOptions
.ExportFormatType = ExportFormatType.PortableDocFormat
.FormatOptions = New PdfRtfWordFormatOptions
.ExportDestinationType =
ExportDestinationType.MicrosoftMail
.DestinationOptions = destOption
End With

oRpt.Export()

Thanks in advance for your help!

User submitted from AEWNET (http://www.aewnet.com/)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,534
Members
45,008
Latest member
Rahul737

Latest Threads

Top