How to manipulate the eMail Body

jim@firstbankms.com

New member
Joined
Aug 24, 2009
Messages
2
Programming Experience
3-5
I have an app that crunches numbers and creates a one page Crystal
Report page. I want that report in the body of an email (not as an
attachment because the recipients will use BlackBerrys).

Here is my code on the email.

Dim Smtpmail As New SmtpClient

Smtpmail.Host = "eMailServer"
Dim _mail As New MailMessage
_mail.From = New MailAddress "Rpt@xxx.com"
_mail.To.Add("Recipient@xx.com")


_mail.Subject = "DownLoad Status"

' set the default smtp server & send it
Smtpmail.Send(_mail)


Is there a way to export the Crystal report to the body of an email?
 
You can pull the text from the ReportDocument.

ReportDocument.ExportToStream(ExportFormatType.Text)

Exports the report to a stream in the specified format.
 
Back
Top