Click here to Skip to main content
15,889,462 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using RDLC report of ASP.net. The report is working fine and exported to PDF as well.

The issue i have faced is that, In some columns data is saved with HTML table tags such as

XML
<table border="1" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="width: 123px">
asdads</td>
<td style="width: 123px">
asdad</td>
<td style="width: 123px">
asda</td>
<td style="width: 123px">
asdd</td>
<td style="width: 123px">
asdadsa</td>
</tr>
<tr>
<td style="width: 123px">
1</td>
<td style="width: 123px">
2</td>
<td style="width: 123px">
3</td>
<td style="width: 123px">
4</td>
<td style="width: 123px">
5</td>
</tr>
<tr>
<td style="width: 123px">
6</td>
<td style="width: 123px">
7</td>
<td style="width: 123px">
8</td>
<td style="width: 123px">
9</td>
<td style="width: 123px">
10</td>
</tr>
<tr>
<td style="width: 123px">
11</td>
<td style="width: 123px">
12</td>
<td style="width: 123px">
13</td>
<td style="width: 123px">
14</td>
<td style="width: 123px">
15</td>
</tr>
<tr>
<td style="width: 123px">
16</td>
<td style="width: 123px">
17</td>
<td style="width: 123px">
18</td>
<td style="width: 123px">
19</td>
<td style="width: 123px">
20</td>
</tr>
<tr>
<td style="width: 123px">
21</td>
<td style="width: 123px">
21</td>
<td style="width: 123px">
21</td>
<td style="width: 123px">
2</td>
<td style="width: 123px">
32</td>
</tr>
<tr>
<td style="width: 123px">
65</td>
<td style="width: 123px">
54</td>
<td style="width: 123px">
87</td>
<td style="width: 123px">
54</td>
<td style="width: 123px">
&nbsp;</td>
</tr>
</tbody>
</table>


But the problem is that RDLC does not interpret HTML Table Tags. The entire Table tags are displayed instead of Tabular structure. If i checked the Interpret HTML tags as style option in Place holder properties, HTML table tags are not displayed by the text is displayed as text in single row

Please help to to display tabular structure in RDLC report.
Posted

RDLC does not support HTML tags. If you want to display a table in the RDLC report, then you must create a Tablix inside the RDLC and set it with some data source.
 
Share this answer
 
Dear Marc. I am having the clob data type. I am not sure the whether user enters text or Tablular sturucture. The user can enter some text followed by Table showing the details in Table and again some text.

In this case how can i do that to display table structure.
 
Share this answer
 
Comments
Hemant Ghagre 25-Mar-14 2:13am    
Dear Marc. I am having the clob data type. I am not sure the whether user enters text or Tablular sturucture. The user can enter some text followed by Table showing the details in Table and again some text.

In this case how can i do that to display table structure in RDLC and export the same to PDF

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900