Alleni,

Thank you so much for looking at the issue and coming up with a solution.
You are correct that the problem is not basic rowspan, but more complicated
scenarios.  Unfortunately I have no idea ahead of time what type of row and
column span a user is going to want, so you can see why this is a difficult
problem.  Due to this issue, we are considering trying to modify iText
source code to allow the use of the older Table class (which supports
rowspan) to be used in headers and footers, or moving to another pdf
creation tool if we can't make that work.  I am still at a loss to
understand why this functionality was removed; if iText creators had it in
the older Table class, and they keep telling users to use nested tables,
then why can't the iText product automatically handle the creation of nested
tables based on the rowspan value?

Anyhow, thanks again for the time you spent on looking at this.

- Stew

-----Original Message-----
From: Alleni [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 08, 2008 8:57 AM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Converting RowSpan toNested
TablesQuestion(AGAIN)

>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


-------------------------------------------------------------------------
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