Send Email Report with CR 9

G

Guest

Hi All,

Im using VS 2003, VB.Net and embbed Crystal Report 9.

How can I send by mail a report from Crystal; I try many samples i find on
the web, but nothing works.

any help will be appreciate.

thx in advance
 
M

Mark Rae

but nothing works.

any help will be appreciate.

A little difficult to help you unless you actually tell us what "nothing
works" means...

What errors are you getting?

How have you configured your report(s)?

How are you trying to email the reports?

What mail server / SMTP queue are you trying to use?

Etc...
 
G

Guest

Hi Mark !

thanks for the quick reply !

first, im not native english writer, sorry about wrong typing.

the code Im usign is this:

Dim ExportOptions As New CrystalDecisions.Shared.ExportOptions
Dim EmailOptions As New
CrystalDecisions.Shared.MicrosoftMailDestinationOptions
ExportOptions.ExportFormatType =
CrystalDecisions.[Shared].ExportFormatType.PortableDocFormat

ExportOptions.ExportDestinationType =
CrystalDecisions.[Shared].ExportDestinationType.MicrosoftMail

EmailOptions.MailToList = "(e-mail address removed)"
EmailOptions.MailSubject = "Pruebas Informe Diario"
EmailOptions.MailMessage = "Pruebas de Adjuntos PDF"
ExportOptions.DestinationOptions = EmailOptions

EnlazarDatos()
ReporteInformeDiario.SetDataSource(DsInformeDiario1)
ReporteInformeDiario.Export()

the "EnlazarDatos()" sentence is a sub, it get the data from the DB an fills
a typed Dataset attach in the page.

I have configured my email account in Outlook using hotmail.

The error message is in spanish, the traslate is:

"Exporting options are not valid"

What Im looking for ?

If you can tell me step by step, how can i make it work.
what i have to setup, what's need to be done, i really appreciate,
because the msn help dont give any examples of it, and it's really hard to
find this kind of info with trustable examples.

thx again !
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top