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

Report HTMLTextbox formatting problems

1 Answer 343 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Bart Nijssen
Top achievements
Rank 1
Bart Nijssen asked on 20 Jan 2011, 11:00 AM
Dear madam/sir,

In both ways it is not possible to show tables. I want to show some tables in the report and off course also when I export to PDF. It isn't possible in both way like i show here bellow. The traditional HTML for creating tables (<table>....) and the new way (<div....>) both don't work.

<table>
<tr>
<td width="300">14" - 350mm</td>
</tr>
<tr>
<td><span style="font-size: 10px;">(725-0001-024)</span></td>
</tr>
</table>
  
<div style="display:table; width:300px; position:relative;">
<div style="float:left; width:200px; position:relative;">
14" - 350mm
</div>
<div style="float:left; width:90px; position:relative;">
<span style="font-size: 10px;">(725-0001-024)</span>
</div>
</div>

When i show the source code from the report I see the following code:

<td dir="ltr" lang="nl-NL" class="s7" colspan="1" rowspan="2"><div class="s8"><div class="s8">14" - 350mm  </div><div class="s8"><span class="s9">(725-0001-024)</span> </div></div></td><td colspan="2" rowspan="1">

Is it possible that it doesn't strip my code? I would prefer that, so i can use my own layout.

Thanks in advance.

Regards, Bart

1 Answer, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 24 Jan 2011, 04:13 PM
Hi Bart Nijssen,

As explained in the Error while displaying unvalidated Html tags in HTMLTextbox forum thread, Telerik Reporting is a server solution, which is intended to process and render data, rather than HTML. Telerik Reporting supports several export formats, but they are all geared towards exporting processed data and charts, rather than HTML. In order to support all the HTML tags we will have to build a web browser engine that is a tremendous task and it's not in out short term plans. 

If you simply need to print a HTML produced by RadEditor, you do not need Telerik Reporting. You can use RadEditor's Export to PDF functionality, and then print the produced document. RadEditor also supports exporting its content in CSV. Finally, you can print RadEditor's content directly (see help). 

If you want to insert HTML produced by RadEditor in Telerik Reporting than check out HtmlTextBox item help article, you will find the list of supported html tags and style attributes. As stated in the same article, the purpose of the HtmlTextBox item is to allow rendering of formatted text using HTML - it is not intended to cover the whole HTML/CSS specification. The item may be referred to as a TextBox with the capability to render differently formatted chunks of text.

Hope this information helps.

Kind regards,
Peter
the Telerik team
Get started with Telerik Reporting with numerous videos and detailed documentation.
Tags
General Discussions
Asked by
Bart Nijssen
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or