By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,651 Members | 1,908 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,651 IT Pros & Developers. It's quick & easy.

Crystal Reports Email

P: n/a
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
Share this Question
Share on Google+
1 Reply


P: n/a
"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 discussion thread is closed

Replies have been disabled for this discussion.