Exporting & the HtmlTextBox

2 posts, 0 answers
  1. Stuart Hemming
    Stuart Hemming avatar
    1622 posts
    Member since:
    Jul 2004

    Posted 01 Nov 2011 Link to this post

    I was hoping that if I had HTML markup in an HtmlTextBox then when it was exported (to an appropriate format) it would be rendered appropriately.

    However, it seems that if I export to either PDF or RTF all I get is the HTML markup.

    Am I doing it wrong? Or am I to just be disappointed?

    -- 
    Stuart
  2. Peter
    Admin
    Peter avatar
    1611 posts

    Posted 03 Nov 2011 Link to this post

    Hi Stuart Hemming,

    We have tested the HtmlTextBox item on our end and we are not able to reproduce the unexpected HTML rendering behavior. Check out the Product Sales per Period demo header that is utilizing a HtmlTextBox item.
    Generally as explained in the Design Considerations for RTF Rendering help article, due to the media limitations, the following CSS style properties set on the HTML tags are NOT respected:
    • borders
    • padding
    • background-color on Block elements is rendered as background-color of the text
    • text-align (center tag)
    If you still experience any difficulties regarding HtmlTextBox rendering in PDF or RTF we will appreciate if you prepare and send us a sample runnable project to review/debug on our end.

    Best wishes,
    Peter
    the Telerik team

    Q2’11 SP1 of Telerik Reporting is available for download (see what's new). Get it today.

  3. DevCraft banner
Back to Top