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

Presenting HTML from Datasource in Report

1 Answer 30 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ben
Top achievements
Rank 1
Ben asked on 23 Apr 2015, 06:14 PM

I have a stored procedure that return a recordset of html rows, such as the following: 

row1: <tr class='cr38ReportHeader'><th>WBS</th>
row2: <th align='center' colspan='1'>ABC<br/>XYZ<br/>07/01/12 - 12/31/12<br/>183</th>
row3: <th align='center' colspan='1'>ABC<br/>XYZ<br/>07/01/12 - 12/31/12<br/>183</th>
row4: <th align='center' colspan='1'>ABC<br/>XYZ<br/>07/01/12 - 12/31/12<br/>183</th>
...etc

So each row in the recordset holds some HTML. I'm wonder what is the best was to present this in a Telerik report. 

I've currently tried to concatenate all rows into a string set the value of an htmltextbox to concatenated string. This did not work. 

Any ideas?

Thanks.

1 Answer, 1 is accepted

Sort by
0
Stef
Telerik team
answered on 27 Apr 2015, 03:07 PM
Hi Robert,

The HtmlTextBox works only with the HTML tags and CSS attributes listed here (only specififc text-formatting options). Any not listed tags (like TABLE) and attributes will not be rendered in the report.
Thus my suggestion is to strip the unsupported tags and display the rest content in an HtmlTextbox or TextBox item.

If you need to render HTML in different formats, please consider using Teler UI for AJAX - RadPdfProcessing, RadWordsProcessing. You may be interested also in Telerik UI for ASP.NET AJAX RadClientExportManager, which allows you to render pages in PDF and image formats.


I hope the provided information helps you.

Regards,
Stef
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
General Discussions
Asked by
Ben
Top achievements
Rank 1
Answers by
Stef
Telerik team
Share this question
or