>From the following URL:

http://itextdocs.lowagie.com/tutorial/objects/tables/index.php

search for "nested tables"

It seems like your problem is not how to do a basic rowspan but a more
complicated multi rowspan table.

Basically if you take your original example you could convert it to
something like the following.

<table style="border:1px solid" border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td style="border-right:1px solid">
                  <table border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td style="height:42px;border-bottom:1px solid;">1</td>
                      </tr>
                      <tr>
                        <td>6</td>
                      <tr>
                  </table>
        </td>
        <td>
                 <table border="0" cellspacing="0" cellpadding="0">
                         <tr>
                                <td style="border-bottom:1px 
solid;border-right:1px solid">2</td>
                    <td style="border-bottom:1px solid">3</td>
                </tr>
                <tr>
                        <td style="border-right:1px solid;">4</td>
                        <td>
                                <table border="0" cellspacing="0" 
cellpadding="0">
                                        <tr>
                                                <td style="border-bottom:1px 
solid;">5</td>
                                        </tr>
                                        <tr>
                                                <td>7</td>
                                        </tr>
                                </table>
                        </td>
                </tr>
            </table>
        </td>
    </tr>
</table>

The main problem with this sample is the "height:42px" as it is not
dynamic and if your content contains multiple lines of data you would
need to adjust this value.

If you create your cells before adding the one with the "height:42px"
you may be able to calculate the height to get the results you want -
but it will take a little work.

Good luck


On Tue, Oct 7, 2008 at 2:33 PM, Stewart Meyers <[EMAIL PROTECTED]> wrote:
> Geez; I'm just asking for some help on a specific issue that I cannot figure
> out how to do with nested tables, which was my original question.  I have
> provided an example of what of what I need to do as a PdfPTable, but cannot
> figure out how to do it.  As I mentioned in my previous thread of this same
> issue, I have purchased and read the examples in the book, but they are very
> simple and don't address situations where there are overlapping cells in
> spanned rows.  If you load the HTML table that I provided in my example, you
> will see what I mean.  Do you know of a specific example that addresses this
> issue?  If you do, I would certainly appreciate a link to it or any other
> information.
>
>
>
> Thank you
>
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to