Thanks for the reply, Paulo.  Interestingly I've had very good success with
the Table object for both PDF and RTF generation.  I have had to make a few
changes/fixes to the code in some instances, but it has worked well for us,
which is why I'm reluctant to get off it even though it is not supported any
more (a shame really since it has some very distinct advantages over the
current model).   I have thought about how I can apply nested tables in many
different scenarios, but have not been able to devise an algorithm that
would work consistently, and I don't have a lot of time myself to work on
it.

What we have been looking at however, is using the Table object for headers
and footers.  I can use it for RTF headers/footers through the
RtfHeaderFooter class, but there is unfortunately not a PdfHeaderFooter
class that supports Tables, and WriteSelectedRows() is not supported in the
Table class.  I have created a PdfHeaderFooter class and have been trying to
integrate it with PdfDocument, but have hit some roadblocks mainly because
I'm not very familiar with the code.  If you do have any suggestions about
how best to use the Table class for PDF headers and footers, it would
certainly be welcome!

Thanks and I certainly do appreciate your efforts with this nice product.

- Stew

-----Original Message-----
From: Paulo Soares [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 10, 2008 5:38 PM
To: Post all your questions about iText here
Subject: Re: [iText-questions] Converting
RowSpantoNestedTablesQuestion(AGAIN)

Table class has all kind of rendering problems. PdfPTable was created to 
alleviate this even if some features were not present at the time, 
reliability was more important. Rowspan would be nice to have but PdfPTable 
had to start simple and now I don't have the time, the need or the 
motivation to do it. So, it's nested tables, some workaround you may devise 
or some other pdf creation tool. If your workaround is a rowspan to nested 
table converter your contribution would be most welcomed.

Paulo

----- Original Message ----- 
From: "Stewart Meyers" <[EMAIL PROTECTED]>
To: "'Post all your questions about iText here'" 
<[email protected]>
Sent: Friday, October 10, 2008 8:47 PM
Subject: Re: [iText-questions] Converting RowSpan 
toNestedTablesQuestion(AGAIN)


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