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

Rendering XHTML data into a "report"

2 Answers 120 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 1
Greg asked on 12 Mar 2009, 08:40 PM
Hi,

We are using our telerik editor to capture large amounts of rich text into our data store (SQL Server), but now have a requirement to output this data into a printable/pdfable print output. Our Reporting Services solution cannot render this html while preserving the formatting.

Question: How to output the rich text into a report?

Can we do this with telerik reporting suite, or is there a custom plugin for RS that will preserve the formatting?

Any ideas gratefully read.

2 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 17 Mar 2009, 09:43 AM
Hi Greg,

RadEditor is an HTML / XHTML editor for editing and producing pure XHTML content. The editor has more than 20 content filters that validate the content and converts the non XHTML attributes to <span style="..."> tags with inline style attributes. Is it possible that your Reporting Services are not able to read / understand some of the html tags or the inline styles and visualize them?
If this is your case, then you can disable the built-in content filters using the ContentFilters property as it is demonstrated in this example: Built-in Content filters. By disabling the editor filters the control will not validate the content and it will be output as it is created by the browser.
If you need to modify further the editor's content you can implement your own custom content filters that will parse the content and change it to the expected content by the RS.

Please, note that RadEditor can export only HTML / XHTML content. If you want to export to PDF or RTF format then you should find a third party HTML to PDF / RTF converter. You can use the following KB article as a starting point:  Converting RadEditor HTML to PDF format.

Kind regards,
Rumen
the Telerik team


Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Greg
Top achievements
Rank 1
answered on 17 Mar 2009, 10:02 AM
Thanks for the reply. 

I take it from that,Telerik reporting has the same 'issue' as MS Reporting Services, which cannot render HTML. I'll take a look at the custom filters properties, but it's just rich text output in a pdf report that I need, so the Tall Components approach looks like a good idea. I've used this product before, so it looks viable. 

Thanks for the depth in your reply. Very helpful.
Tags
Editor
Asked by
Greg
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Greg
Top achievements
Rank 1
Share this question
or