pdf generation fails with table in div

Last post 02-11-2008, 12:39 PM by HtB. 4 replies.
Sort Posts: Previous Next
  •  02-11-2008, 10:01 AM 36939

    pdf generation fails with table in div

    Hello,
     
    can anyone help me. The generaton of a pdf fails with this HTML code. When border = "0". It works fine !
     
    Regards,
     
    <div id="ARTIKELEN" style="position: absolute; width: 757px; height: 450px; top: 255px; left: 0px;">
    <table border="2" cellpadding="2" cellspacing="2" width="800">
        <tbody>
            <tr>
                <td>&nbsp;dfasf</td>
                <td>&nbsp;sdasf</td>
                <td>&nbsp;afasfa</td>
                <td>&nbsp;asfasf</td>
                <td>&nbsp;asfasf</td>
                <td>&nbsp;asfasf</td>
            </tr>
        </tbody>
    </table>
    <br />
    </div>

  •  02-11-2008, 10:35 AM 36941 in reply to 36939

    Re: pdf generation fails with table in div

    HTB,
     
    Did you get any error?
     
    I tried the above code in th following example. it works fine:
     
     
     

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  02-11-2008, 11:28 AM 36949 in reply to 36941

    Re: pdf generation fails with table in div

    Yes,
     
    an error in the  pdf viewer.
     
    Try this
     
    <div id="FACTUUR" style="position: absolute; width: 307px; height: 72px; top: 259px; left: 40px;">klantnummer : <br />
    ordernummer : <br />
    <br />
    </div>
    <div id="ARTIKELEN" style="position: absolute; width: 717px; height: 450px; top: 350px; left: 40px;">
    <table border="0" cellpadding="2" cellspacing="2" width="500">
        <tbody>
            <tr>
                <td width="50">aantal</td>
                <td width="100">artikel</td>
                <td>omschrijving</td>
                <td>prijs</td>
                <td>bedrag</td>
            </tr>
        </tbody>
    </table>
    <br />
    </div>
    <div id="TITLE" style="position: absolute; width: 295px; height: 45px; left: 462px; top: 55px;"><span style="font-size: 24pt;">FACTUUR</span><br />
    </div>
    <div id="AAN" style="position: absolute; width: 358px; height: 105px; top: 124px; left: 398px;">Han<br />
    hagenweg 42-36<br />
    7456 LL Holland<br />
    </div>
    <div id="ADRES" style="position: absolute; width: 307px; height: 174px; top: 25px; left: 40px; line-height: 14pt;"><span style="font-size: 14pt;">Jumbo-outlet.nl is een handelsnaam van<br />
    INET Retail b.v.<br />
    Sterrebosstraat 6<br />
    7481 DD Haaksbergen<br />
    T : 053 - 5742048<br />
    F : 088 -<br />
    E : [email protected]<br />
    W : www.jumbo-outlet.nl</span><br />
    </div>

     
     
  •  02-11-2008, 12:29 PM 36955 in reply to 36949

    Re: pdf generation fails with table in div

    @Adam
     
    It works indeed on Your server. But not on my hosted server.  
     
    See the difference with www.jumbo-outlet.nl/nimdai/cs/createpdf.aspx
     
    HtB

  •  02-11-2008, 12:39 PM 36956 in reply to 36955

    Re: pdf generation fails with table in div

    @Adam
     
    I now have a table that converts to pdf when it has no border. When the table has a border then it gives in de pdf reader.
     
    An unrecognized token .....
     
    HtB

View as RSS news feed in XML