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

radEditor Table Alignment Issue

3 Answers 67 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Bhushan
Top achievements
Rank 1
Bhushan asked on 18 Oct 2011, 11:39 AM
Hello Sir,
Im using a rad editor as ediotr in my web application.
 i added a table in radeditor from word and then after i set a table properties in radediotr to border type=solid and border width=1
after that when i see the report in pdf format then first cell width is increased .
i didnt find out the reason for that please tell me solution for that

pls reply ASAP.

thanks in Advancem,
Bhushan

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 21 Oct 2011, 07:50 AM
Hello Bhushan,

Which version of RadEditor do you use?
Are you able to reproduce the problem in the Export to PDF demo?
Could you send us the HTML content that you try to export so that we can examine it?

Greetings,
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
0
Bhushan
Top achievements
Rank 1
answered on 21 Oct 2011, 10:55 AM
Hello Sir following is the html generated code

<table style="width: 607px; border-collapse: collapse;border: medium none;" border="1" cellspacing="0" cellpadding="0">
    <tbody>
        <tr style="height: 35.5pt;">
            <td style="background-color: transparent;border: 1px solid;">
            <p><span style="font-size: 11pt;">1</span></p>
            </td>
            <td style="background-color: transparent;border: 1px solid;">
            <p><span style="font-size: 11pt;">CABLES ISI MARK,1100V(Grade) IS 1554</span></p>
            </td>
            <td style="background-color: transparent;border: 1px solid;">
            <p><span style="font-size: 11pt;">FINOLEX,ASIAN,FGI(GLOSTER),NICCO,</span></p>
            <p><span style="font-size: 11pt;">POLYCAB,HAVELLS</span></p>
            </td>
        </tr>
        <tr>
            <td style="background-color: transparent;border: 1px solid;">
            <p>&nbsp;</p>
            </td>
            <td style="background-color: transparent;border: 1px solid;">
            <p><span style="font-size: 11pt;">CABLES ISI MARK,1100V(Grade) IS 7098</span></p>
            </td>
            <td style="background-color: transparent;border: 1px solid;">
            <p><span style="font-size: 11pt;">&nbsp; -DO -</span></p>
            </td>
        </tr>
        <tr>
            <td style="background-color: transparent;border: 1px solid;">
            <p><span style="font-size: 11pt;">2</span></p>
            </td>
            <td style="background-color: transparent;border: 1px solid;">
            <p><span style="font-size: 11pt;">WIRES:1100V GRADE ISI MARK FR</span></p>
            </td>
            <td style="background-color: transparent;border: 1px solid;">
            <p><span style="font-size: 11pt;">FINOLEX,POLYCAB,RPG,RR kabel, HAVELLS</span></p>
            </td>
        </tr>
        <tr>
            <td style="background-color: transparent;border: 1px solid;">
            <p><span style="font-size: 11pt;">3</span></p>
            </td>
            <td style="background-color: transparent;border: 1px solid;">
            <p><span style="font-size: 11pt;">ERW M.S.CONDUITS ISI MARK FR</span></p>
            </td>
            <td style="background-color: transparent;border: 1px solid;">
            <p><span style="font-size: 11pt;">BEC, NIC, WIMCO, AKG.</span></p>
            </td>
        </tr>
    </tbody>
</table>

i added my pdf report file in that
the width of first column is increased it takes a width same for aal the column pls tell me the solution for that
0
Rumen
Telerik team
answered on 25 Oct 2011, 02:26 PM
Hello Bhushan,

You should explicitly set the column width in order to be exported in the generated PDF document:

<table style="border: currentcolor; width: 607px; border-collapse: collapse;" border="1" cellspacing="0" cellpadding="0">
    <colgroup><col style="width:20px;"></col><col></col><col></col></colgroup>
    <tbody>
        <tr style="height: 35.5pt;">
            <td style="border: 1px solid currentcolor; background-color: transparent;">
            <p><span style="font-size: 11pt;">1</span></p>
            </td>
            <td style="border: 1px solid currentcolor; background-color: transparent;">
            <p><span style="font-size: 11pt;">CABLES ISI MARK,1100V(Grade) IS 1554</span></p>
            </td>
            <td style="border: 1px solid currentcolor; background-color: transparent;">
            <p><span style="font-size: 11pt;">FINOLEX,ASIAN,FGI(GLOSTER),NICCO,</span></p>
            <p><span style="font-size: 11pt;">POLYCAB,HAVELLS</span></p>
            </td>
        </tr>
        <tr>
            <td style="border: 1px solid currentcolor; background-color: transparent;">
            <p> </p>
            </td>
            <td style="border: 1px solid currentcolor; background-color: transparent;">
            <p><span style="font-size: 11pt;">CABLES ISI MARK,1100V(Grade) IS 7098</span></p>
            </td>
            <td style="border: 1px solid currentcolor; background-color: transparent;">
            <p><span style="font-size: 11pt;">  -DO -</span></p>
            </td>
        </tr>
        <tr>
            <td style="border: 1px solid currentcolor; background-color: transparent;">
            <p><span style="font-size: 11pt;">2</span></p>
            </td>
            <td style="border: 1px solid currentcolor; background-color: transparent;">
            <p><span style="font-size: 11pt;">WIRES:1100V GRADE ISI MARK FR</span></p>
            </td>
            <td style="border: 1px solid currentcolor; background-color: transparent;">
            <p><span style="font-size: 11pt;">FINOLEX,POLYCAB,RPG,RR kabel, HAVELLS</span></p>
            </td>
        </tr>
        <tr>
            <td style="border: 1px solid currentcolor; background-color: transparent;">
            <p><span style="font-size: 11pt;">3</span></p>
            </td>
            <td style="border: 1px solid currentcolor; background-color: transparent;">
            <p><span style="font-size: 11pt;">ERW M.S.CONDUITS ISI MARK FR</span></p>
            </td>
            <td style="border: 1px solid currentcolor; background-color: transparent;">
            <p><span style="font-size: 11pt;">BEC, NIC, WIMCO, AKG.</span></p>
            </td>
        </tr>
    </tbody>
</table>


Best wishes,
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
Bhushan
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Bhushan
Top achievements
Rank 1
Share this question
or