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!
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!