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

Editor - Export to Pdf Table widths in % does not render as expected

4 Answers 509 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Piyushkumar
Top achievements
Rank 1
Piyushkumar asked on 10 Jan 2011, 07:12 PM
Hi All,

My user is having Html content having width set in % for TD. But when it is exported to pdf, it does not render it as per % set. It defaults to Total table width / no of TD.

<table style="width:100%;">
<tr>
   <td style="width:10%;">No</td>
   <td style="width:70%;">Full Name</td>
   <td style="width:20%;">Telephone</td>
</tr>
</table>

It displays <table> with all TDs having equal width i.e. 33% appx.

Thanks in advance for all replies.

Piyush

4 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 12 Jan 2011, 04:57 PM
Hello Piyush,

This problem should be fixed with the today's fix that we made for the bug reported in your other forum post: http://www.telerik.com/community/forums/aspnet-ajax/editor/editor-export-to-pdf-table-width-attribute-error.aspx.

Best regards,
Rumen
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Miriam
Top achievements
Rank 1
answered on 13 May 2012, 08:39 PM
Hello,

I have the same problem, I'm using RadControls for ASP.NET AJAX Q2 2011 SP1. When I export to PDF all columns are of equal widths. Please help.

<table border="1" cellspacing="0" cellpadding="2" width="100%" style="font-family: Lucida Sans; font-size: 9pt;">
                    <tr style="text-align:center;">
                        <td style="width:50%; white-space:nowrap;">PRODUCT NAME AND CLASSIFICATION</td>
                        <td style="width:7%; white-space:nowrap;">GROSS </td>
                        <td style="width:7%; white-space:nowrap;">NET </td>
                        <td style="width:7%; white-space:nowrap;">AMOUNT</td>
                        <td style="width:7%; white-space:nowrap;">QUANTITY</td>
                        <td style="width:7%; white-space:nowrap;">STORE</td>
                        <td style="width:7%; white-space:nowrap;">CODE</td>
                        <td style="width:7%; white-space:nowrap;">SHELF</td>
                    </tr>
                </table>
0
Miriam
Top achievements
Rank 1
answered on 13 May 2012, 08:39 PM

0
Rumen
Telerik team
answered on 16 May 2012, 11:05 AM
Hi,

The Export to PDF filter of RadEditor  does not support width values in percents. This is limitation of the third party exporter tool. Unfortunately, this is a complex task, the implementation of which will require huge efforts and time that we can use to implement new controls or fix more important bugs. That is why this problem is not logged with high priority and I could not provide a firm estimate when it will be fixed.

To export the columns, the width style property should be applied to the col elements, e.g.

<table style="margin: 0pt auto; width: 430px; clear: both;">
<colgroup><col style="width: 220px;" /><col style="width: 120px;" /><col style="width: 60px;" /><col style="width: 30px;" /></colgroup>
<thead>
<tr>
<th style="width: 220px; background-color: #ebf1dd;">Browser/OS</th>
<th style="width: 120px; background-color: #ebf1dd;">Windows</th>
<th style="width: 60px; background-color: #ebf1dd;">Mac OS</th>
<th style="width: 30px; background-color: #ebf1dd;">Linux</th>
</tr>
<tr>
<td>dasdsadas asd adsasdas dasdasdasd</td>
<td>das dasdas dasda sdasdasdas</td>
<td>das </td>
<td>das</td>
</tr>
</thead>
</table>


Regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Editor
Asked by
Piyushkumar
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Miriam
Top achievements
Rank 1
Share this question
or