473,326 Members | 2,108 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Fax / Email a Crystal Report

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!
Nov 18 '05 #1
1 1468
Did you resolve this, I'm having the same probelm.
jo*@gordonassociates.co.uk
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/)
Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Stephan | last post by:
Hi, I'm using Visual Studio 2003 (C#) with the integrated Crystal Report software and have the following question: How can I assign a value (string) to an unbound (string) field in Crystal...
13
by: kristoff plasun | last post by:
I have a problem with a C++ DCOM application that prints Crystal Reports with data from Oracle. The SQL query is relatively complex but when the report is printed from the Crystal Reports...
0
by: Dr. Indera | last post by:
hello, i previously posted the questions below on several crystal reports newsgroups, including the one for the company that makes crystal reports, but never got an answer, so i'm hoping that...
2
by: Mythran | last post by:
In .Net, how can I go about and set a Crystal Reports namespace? Right now they use the Root Namespace (VB) from the project. How can I extend the namespace for a single report (which will be set...
1
by: Karthic | last post by:
When i right click on the .rpt file in the VS 2003, i see a property printer setting. It says "No printer" on the top and there is option to select printer and paper settings etc.. I want to...
1
by: bthomas71chevy | last post by:
I have just setup a WebServer and all the applications work fine, but when every any of the applications try to generate a Crystal Report the page errors out. "File or assembly name...
3
by: touf | last post by:
hi, 1- I've a report (Crystal reports) created from a vb Form (crystalReportsViewer) How can I send it via email , In crystal report there is the possibility to export, but I didn't find a way to...
6
by: toufik | last post by:
Hi, I've a crystal reports Report, Is it possible to send it by email? how? Thanks
0
by: Chris | last post by:
I have the following situation in a VB.Net App I am working on: 1.)A report created in VS.Net 2003 using the CR.Net component of VS 2003. 2.)The datasource for the report is a Stored Proc in a...
11
by: =?Utf-8?B?cmtibmFpcg==?= | last post by:
How can I stop receiving this message while calling a crystal report? "The report you requested requires further information." Thanks
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.