473,408 Members | 2,839 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,408 software developers and data experts.

Crystal Reports Email

As an alternative approach you may want to export the
report as a file (PDF, Excel or Word doc, etc) and create
and send the e-mail using .NET. There's a .NET class call
system.web.mail that includes sub-classes of MailMessage
and SmtpMail. I've never used them but it looks like
everything is there to create a message and send it.

Just a suggestion. Good luck.

-----Original Message-----
Hi
Does anyone knows how to send crystal report as email attachment? It has to open outlook and attach crystal
report.I am trying soemthing like as follows but it was giving errors.
CrystalDecisions.Shared.MicrosoftMailDestinationO ptions m = new
CrystalDecisions.Shared.MicrosoftMailDestinationOp tions();m.MailToList = "";
m.MailSubject = "test";
this.crystalReport11.ExportOptions.ExportDestinati onType =CrystalDecisions.Shared.ExportDestinationType.Mic rosoftMai
l;\\ this.crystalReport11.ExportOptions.ExportFormatTyp e = CrystalDecisions.Shared.ExportFormatType.Excel; this.crystalReport11.ExportOptions.DestinationOpti ons = m; this.crystalReport11.Export();

.

Nov 22 '05 #1
1 1163
"AlexB" <an*******@discussions.microsoft.com> wrote in message
news:6e****************************@phx.gbl...
As an alternative approach you may want to export the
report as a file (PDF, Excel or Word doc, etc) and create
and send the e-mail using .NET. There's a .NET class call
system.web.mail that includes sub-classes of MailMessage
and SmtpMail. I've never used them but it looks like
everything is there to create a message and send it.


It supports attachments, but if you need more advanced options such as
alternate encodings, or rich content mails it does not support that.
Nov 22 '05 #2

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

Similar topics

4
by: Rick Thiel | last post by:
Hello, I am trying to build a Crystal report VisualStudio.NET for an ASP.NET application. I would like to build a report that doesn't connect to any particular database at design time because I...
2
by: Stu | last post by:
Hi there, I am trying to set up a Crystal Report with the following tables: Customer Info: -Name -Address -CustomerID Orders:
1
by: rdshultz | last post by:
My company is going to a new software were I have to learn Crystal Reports. Had my first class and I'm a little confused. The instructor said everytime you run a Crystal report you have to do a...
10
by: Joriz | last post by:
Obviously im new with ms access..so my basic question is how do i run crystal reports in my ADP. I also pass parameters to cyrstal reports. Please help! thanks in advance
3
by: Dmitry Karneyev | last post by:
Hi! I need to deploy .NET application (ADO.NET + Crystal Reports) in local intranet. All assemblies of application will be shared in the folder on the server so all users can execute this...
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....
19
by: LP | last post by:
I am using (trying to) CR version XI, cascading parameters feature works it asks user to enter params. But if page is resubmitted. It prompts for params again. I did set...
1
by: =?Utf-8?B?VGVycnk=?= | last post by:
I am brand new to using Crystal Reports and am trying to generate a report based on a custom object - in another project. I have a layered design, with all my business objects in a seperate...
2
by: =?Utf-8?B?Um9zcyBNYXNvbg==?= | last post by:
Hi I am interested in using crystal reports for the first time but have a few questions that someone maybe able to help with before I get started. The background to my query is that a client is...
6
by: G. Stoynev | last post by:
I can't seem to be able to prevent a Crystal Reports formula to evaluate an expression when the report contains no records to show. Here's the formula (DateTransferred is a DateTime column): ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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,...
0
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...
0
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...
0
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...

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.