Last post Jun 29, 2010 01:49 AM by SMuhilan
Jun 08, 2010 12:52 AM|SMuhilan|LINK
I am exporting crystal report into html format and sending the html file via email (HTML EMAIL) in the body of text.
The problem is while the receiver forwarded the email to any other person, the email content get distrubed and format of the report became tollay wrong.
Also when I tried to send the report to GMAIL account, the gmail account is not displaying format properly.
I report this issue in the asp.net crystal report forum perviously also.
crystal report export to HTML Format issue when forwarding email to other person
But no solution.
How to overcome this issue?
crysta report exporting html and emailing
Jun 08, 2010 03:21 AMemail@example.com|LINK
some sample like
System.IO.MemoryStream oStream = (System.IO.MemoryStream)report.ExportToStream(CrystalDecisions.Shared.ExportFormatType.HTML40);
Response.Buffer = true;
Response.ContentType = "application/html";
if you get your Crystal report data in HTML format. and Mail content like
toAddress = new MailAddress("firstname.lastname@example.org");
fromAddress = new MailAddress("email@example.com");
MailMessage mail = new MailMessage(fromAddress, toAddress);
SmtpClient client = new SmtpClient();
client.Host = Config.SMTP_Host;
client.Port = Config.SMTP_Port;
mail.IsBodyHtml = true;
mail.Subject = Subject;
mail.Body = Body;
set mail IsBodyHtml= true
Jun 09, 2010 01:24 AM|SMuhilan|LINK
The crystal report exported HTML correctly and email is also show correct format in outlook.
The issue when I try to farwdeded the email to any other, the format become distrubed.
But in Gmail the format is not showing properly when I send crysal report html to a gmail account.
You can see the my old post link in which I explained more about the format issue.
Jun 29, 2010 01:49 AM|SMuhilan|LINK
Anybody is their to resolve.