email not rendering correctly in outlook email client

6 posts, 0 answers
  1. Saru
    Saru avatar
    2 posts
    Member since:
    Jan 2013

    Posted 12 Mar Link to this post

    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

  2. Stef
    Admin
    Stef avatar
    3050 posts

    Posted 12 Mar Link to this post

    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
  3. DevCraft banner
  4. Saru
    Saru avatar
    2 posts
    Member since:
    Jan 2013

    Posted 14 Mar in reply to Stef Link to this post

    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

  5. Stef
    Admin
    Stef avatar
    3050 posts

    Posted 16 Mar Link to this post

    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
  6. Trevor
    Trevor avatar
    1 posts
    Member since:
    Jun 2011

    Posted 30 Mar in reply to Stef Link to this post

    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.
  7. Stef
    Admin
    Stef avatar
    3050 posts

    Posted 31 Mar Link to this post

    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
Back to Top
DevCraft banner