This is a migrated thread and some comments may be shown as answers.

email not rendering correctly in outlook email client

5 Answers 102 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Saru
Top achievements
Rank 1
Saru asked on 12 Mar 2016, 07:14 AM

Hi,

I have recently upgraded telerik reporting component from 5.1.11.713 to 10.0.16.113 and modified the code as mentioned in the documentation.

When I pass the createhtmlstream to .NET mailmessage Alternateview and generate the email, the rendered email body is not properly formatted.

On viewsource of the generated email it shows in <div> and <p> tags and is not shown in the actual format that I view in the PDF generated from the same report.

In the earlier version prior to this upgrade it was working fine and the email was showing in correct format as it was rendering with <table><tr><td>.

 

How can I set the html render with <table><tr><td> in the recent version reporting component as it works in the earlier version?

Please help me in fixing this issue, as I need to go with upgrade to PROD next week.

Thanks in advance.

 

Regards,

Saru

5 Answers, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 12 Mar 2016, 03:32 PM
Hi Saru,

The HTML Rendering is updated and does not use the Table tag. Details about the HTML rendering are available in Design Considerations for HTML Rendering.

The recommended approach to send reports in e-mails is to export them in a format like PDF and add them as attachments to the actual message - Send Telerik Report as email attachment.


Let us know if you have any further questions.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Saru
Top achievements
Rank 1
answered on 14 Mar 2016, 08:08 AM

Hi Stef,

Thank you for the update.

We have implemented the functionality that has attachment and as well show the same as email body.

As the format is being used from long time, do you have any other alternate approach where-in we can show the content as email body which should look as-is which is there in the PDF.

Regards,

Saru

0
Stef
Telerik team
answered on 16 Mar 2016, 04:30 PM
Hi Saru,

The HTML formats that can be used on export are HTML5, HTML5Interactive and MHTML - Rendering Extensions.

In the case of the HTML5 formats you can configure additionally the rendering through the available device information settings e.g. HTML5Interactive Device Information Settings. The HTML formats are multi-document formats, where you will have the HTML, images, CSS in separate files - Exporting a report to a multi document format:.
You can post-process (read, modify) the result files to get HTML compatible with the email clients you have to support.


Other approach is to have the report in Image format, which will not produce an editable content in the email.


Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Trevor
Top achievements
Rank 1
answered on 30 Mar 2016, 05:48 PM
I'm having the same issue. You would think that a company who has NASA as a client could fix this instead of providing work-arounds.
0
Stef
Telerik team
answered on 31 Mar 2016, 04:03 PM
Hi Trevor,

Telerik Reporting provides HTML rendering, that is used by web viewers as well. Browsers handle correctly the HTML and the passed CSS, but to use it in an e-mail the result HTML and CSS have to be adjusted based on the selected mail client.

For more details, please check the following stackoverflow discussion - How to design a cross client / browser compatible email?


The approach we recommend is to attach the exported report to the e-mail, instead of placing the content as HTML. In case using HTML is a requirement, you can export in code and adjust the HTML/CSS to cover the requirements of the used e-mail client.

Regards,
Stef
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Saru
Top achievements
Rank 1
Answers by
Stef
Telerik team
Saru
Top achievements
Rank 1
Trevor
Top achievements
Rank 1
Share this question
or