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

Exporting & the HtmlTextBox

1 Answer 9 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Stuart Hemming
Top achievements
Rank 2
Stuart Hemming asked on 01 Nov 2011, 08:38 PM
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

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 03 Nov 2011, 03:58 PM
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.

Tags
General Discussions
Asked by
Stuart Hemming
Top achievements
Rank 2
Answers by
Peter
Telerik team
Share this question
or