473,379 Members | 1,344 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,379 software developers and data experts.

Emailing Crystal Reports using MicrosoftMail

zEE
Hi,

I'm facing an issue when I use the MicrosoftMail option for emailing
the crystal report. My code is as follows -

ReportDocument ReportFile = new ReportDocument();
ReportFile.Load(filename);
ReportFile.SetDataSource(DataSet1);
CrystalDecisions.Shared.ExportOptions myExportOptions;

CrystalDecisions.Shared.MicrosoftMailDestinationOp tions mymail=new
MicrosoftMailDestinationOptions();

myExportOptions = ReportFile.ExportOptions;

myExportOptions.DestinationOptions=mymail;
myExportOptions.ExportDestinationType =
CrystalDecisions.Shared.ExportDestinationType.Micr osoftMail;

myExportOptions.ExportFormatType =
CrystalDecisions.Shared.ExportFormatType.PortableD ocFormat;

ReportFile.Export(); //// When i run this it says "invalid export
options"

// ReportFile.ExportToHttpResponse(myExportOptions,re sponse,false,"");

// When i run the above line it says "thread aborted"

Plz help me ... How to send an email .

May 23 '06 #1
1 1691
First of all, you have to have Microsoft Mail installed on the web server to
get this to work.

Instead, why not convert this to a PDF and use the Mail namespace
functionality in .NET to send the PDF as an attachment?
--
Christopher A. Reed
"The oxen are slow, but the earth is patient."

"zEE" <ha*********@gmail.com> wrote in message
news:11**********************@j55g2000cwa.googlegr oups.com...
Hi,

I'm facing an issue when I use the MicrosoftMail option for emailing
the crystal report. My code is as follows -

ReportDocument ReportFile = new ReportDocument();
ReportFile.Load(filename);
ReportFile.SetDataSource(DataSet1);
CrystalDecisions.Shared.ExportOptions myExportOptions;

CrystalDecisions.Shared.MicrosoftMailDestinationOp tions mymail=new
MicrosoftMailDestinationOptions();

myExportOptions = ReportFile.ExportOptions;

myExportOptions.DestinationOptions=mymail;
myExportOptions.ExportDestinationType =
CrystalDecisions.Shared.ExportDestinationType.Micr osoftMail;

myExportOptions.ExportFormatType =
CrystalDecisions.Shared.ExportFormatType.PortableD ocFormat;

ReportFile.Export(); //// When i run this it says "invalid export
options"

// ReportFile.ExportToHttpResponse(myExportOptions,re sponse,false,"");

// When i run the above line it says "thread aborted"

Plz help me ... How to send an email .

Jun 7 '06 #2

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

Similar topics

1
by: rAGHU | last post by:
Hi, In my ASP.NET web application project we need to design crystal reports with Crystal Reports version 8.5 enterpraise edition(Please Note:It is not the Crystal Reports that comes with...
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...
5
by: BStorm | last post by:
I have a transaction log file where the DataSet table's Description column is actually delimited into "subcolumns" based upon the transaction id. I would like to parse these into separate fields...
3
by: Gheaci Maschl | last post by:
Hi all! I would like to have your opinion about my problem and my proposal how to solve it: Ingredients: - BTriev database - Crystal Reports - maybe MS Access - Liinos6 (small ERP software)
2
by: RobM | last post by:
I am using windows forms and using Crystal Reports. I have attempted to email using the standard email sample, but get an exception and the erro public void CreatePDFEmail(string sendto,string...
7
by: p | last post by:
WE had a Crystal 8 WebApp using vs 2002 which we upgraded to VS2003. I also have Crystal 9 pro on my development machine. The web app runs fine on my dev machine but am having problems deploying....
1
by: Tanya | last post by:
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...
3
by: VMI | last post by:
I know this may not be the best NG for this, but I feel you guys know more about this than any of the other NGs. I need to build several simple reports (over 50 of them and they get their data...
3
by: Miro | last post by:
Hi, Just wondering what a good book is on visual studios 2008 ( or 2005 if no 2008 ) that teaches you how to properly use crystal reports with it. Or im assuming that as long as I can create a...
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...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.