radEditor Table Alignment Issue

4 posts, 0 answers
  1. Bhushan
    Bhushan avatar
    4 posts
    Member since:
    Sep 2011

    Posted 18 Oct 2011 Link to this post

    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
  2. Rumen
    Admin
    Rumen avatar
    14462 posts

    Posted 21 Oct 2011 Link to this post

    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
  3. Bhushan
    Bhushan avatar
    4 posts
    Member since:
    Sep 2011

    Posted 21 Oct 2011 Link to this post

    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
  4. Rumen
    Admin
    Rumen avatar
    14462 posts

    Posted 25 Oct 2011 Link to this post

    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
Back to Top