Send Email Report with CR 9

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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...
 
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 !
 
Back
Top