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

Removing HTML in PDF version of reports

4 Answers 43 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Karl Wilkens
Top achievements
Rank 1
Karl Wilkens asked on 21 Jan 2011, 06:04 PM
We have a report using Q3 2010 Reporting that contains html tags that we need for the on screen report, but absolutely dont want for export to PDF and other export formats. I see we can do a StripHTMLTags easy enough but when using that, it affects the formatting of the online report viewer presentation adversely. Is there a way to do StripHTMLTags Only if we are exporting? Thanks.

4 Answers, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 24 Jan 2011, 09:53 AM
Hello Karl,

Are you getting raw HTML in the export formats? If that is the case, then most likely you're using the standard TextBox item, when you should use the HtmlTextBox for handling HTML in your reports. You can see the supported HTML tags and CSS attributes in the latter article.

Best wishes,
Steve
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
0
Maliwan
Top achievements
Rank 1
answered on 13 Feb 2013, 03:49 AM
hi Steve
some data in my database as HTML
I want to get raw HTML in the export to PDF 
but i need remove all fonts style to make same for all font. 
How I do?
Thank you.

0
Steve
Telerik team
answered on 13 Feb 2013, 10:16 AM
Hi Maliwan,

The TextBox item would display value as you set it, so if it is HTML, it would be displayed as raw HTML in PDF format. The HtmlTextBox item on the other hand, would handle the HTML you have passed as value and display it accordingly in all supported formats. There is no middle option i.e. you either display the raw HTML or it is handled from our HTML engine. If you have custom requirements, you would have to apply them to the data prior binding the report to it.

Kind regards,
Steve
the Telerik team

HAPPY WITH REPORTING? Do you feel that it is fantastic? Or easy to use? Or better than Crystal Reports? Tell the world, and help fellow developers! Write a short review about Telerik Reporting and Telerik Report Designer in Visual Studio Gallery today!

0
Maliwan
Top achievements
Rank 1
answered on 14 Feb 2013, 02:43 AM
Thank you
Tags
General Discussions
Asked by
Karl Wilkens
Top achievements
Rank 1
Answers by
Steve
Telerik team
Maliwan
Top achievements
Rank 1
Share this question
or