473,770 Members | 1,905 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 MicrosoftMailDe stinationOption s

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

With ExpOptions
.ExportFormatTy pe = ExportFormatTyp e.PortableDocFo rmat
.FormatOptions = New PdfRtfWordForma tOptions
.ExportDestinat ionType =
ExportDestinati onType.Microsof tMail
.DestinationOpt ions = destOption
End With

oRpt.Export()

Thanks in advance for your help!
Nov 18 '05 #1
1 1483
Did you resolve this, I'm having the same probelm.
jo*@gordonassoc iates.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 MicrosoftMailDe stinationOption s

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

With ExpOptions
.ExportFormatTy pe = ExportFormatTyp e.PortableDocFo rmat
.FormatOptions = New PdfRtfWordForma tOptions
.ExportDestinat ionType =
ExportDestinati onType.Microsof tMail
.DestinationOpt ions = 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
19182
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 Report at runtime? Example: private void button1_Click(object sender,
13
15179
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 designer it shows up very fast. When the report is printed from my application it takes about ten times as long to get the report to appear. When printing straight from the Crystal Reports
0
4495
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 someone on this board knows the answers to them. the questions are for the version of crystal that ships with visual studio.net 2003. if it helps, the reports that i create are in a visual basic.net project. it was recommended that i post the...
2
4934
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 on all reports)? Thanks for any and all help, in advance :) Mythran
1
12181
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 know how will this affect a report rendered by a crystal viewer. I have a web page with a crystal viewer rendering the report on the page. I build my application in one of my development machines and deploy it
1
3085
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 CrystalKeyCodeLib, or one of its dependencies, was not found." I read that the 4 MSM files need to be moved to the a MERGE MODULES folder in the Common Files folder, but didn't seem to do a thing.
3
1420
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 send it by email. 2- I've also post a quetion for few days but didn't receive answer: How can I display a text (invoice number) at th top of all pages of my report, I've a report header and page header (that contain other informations) , the...
6
1738
by: toufik | last post by:
Hi, I've a crystal reports Report, Is it possible to send it by email? how? Thanks
0
2273
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 SQL Server DB (pull method). 3.)The Stored Proc has two input parameters of type date. 4.)The Stored Proc is a rather complex proc that was not written by me, but does work(see next item). It currently returns about 13K rows of data. 5.)The...
11
9698
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
9454
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10259
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10101
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10038
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9906
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8933
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7456
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5482
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2849
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.