I add the nested PdfPTable to a cell, set colspan(3), and add that cell
to the enclosing table.

Agatha H. Liu wrote:
> Justin,
>  
> It's still not clear to me how you made the subtable span multiple
> columns of the enclosing table...  I tried setDefaultColSpan() on the
> enclosing table with insertTable(), and that didn't seem to work.  It
> also seems possible to add a subtable by wrapping it into a cell rather
> than using insertTable(), but the iText tutorial says that we can only
> add a Table to a Cell with colspan and rowspan equal to 1...  I'd
> appreciate it if you could provide a little more detail.
>  
> Thanks,
> Agatha
>  
> 
> 
> */Justin Lee <[EMAIL PROTECTED]>/* wrote:
> 
>     I created a table with the same number of columns as the enclosing table
>     and then worked with the subtable as if it were the enclosing table.
>     When I was done adding those rows, I just added the subtable to the
>     enclosing table with a colspan of 3 (in my case...). Worked like a
>     charm.
> 
>     Agatha H. Liu wrote:
>     > Hi Justin,
>     >
>     > Thank you for the pointer! I'm wondering whether you did so by
>     creating
>     > as many sub-tables as the number of columns in the original table and
>     > adding them to the original table using insertTable(), as it doesn't
>     > seem possible to have a sub-table span multiple columns of the
>     original
>     > table?
>     >
>     > Thanks,
>     > Agatha
>     >
>     >
>     > */Justin Lee /* wrote:
>     >
>     > Having just "solved" this problem, the answer i went with is to put
>     > those rows in a subtable and disallow that table to break. That will
>     > for the required rows to stay together while allowing the enclosing
>     > table to break according to whatever policy is defined.
>     >
>     > Bruno Lowagie wrote:
>     > > Agatha H. Liu wrote:
>     > >
>     > >> Hi,
>     > >>
>     > >> I didn't find much information in the mail archive about the
>     > issue I'm
>     > >> dealing with. I've got a table,and what I need is to have certain
>     > >> consecutive rows displayed on the same page instead of split
>     over two
>     > >> pages. If anyone would suggest an efficient way to achieve
>     this, I'd
>     > >> greatly appreciate it.
>     > >>
>     > > I don't understand the question.
>     > > What do you want to happen if the cells don't fit?
>     > > br,
>     > > Bruno
>     > >
>     > >
>     > > -------------------------------------------------------
>     > > SF.Net email is sponsored by: GoToMeeting - the easiest way to
>     > collaborate
>     > > online with coworkers and clients while avoiding the high cost of
>     > travel
>     > > and
>     > > communications. There is no equipment to buy and you can meet as
>     > often as
>     > > you want. Try it
>     > > free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&op=click
>     > > _______________________________________________
>     > > iText-questions mailing list
>     > > [email protected]
>     > > https://lists.sourceforge.net/lists/listinfo/itext-questions
>     >
>     > --
>     > cheeser You can find my blog at http://cheeser.blog-city.com
>     > and on AIM as "evan chooly"
>     >
>     >
>     > -------------------------------------------------------
>     > SF.Net email is sponsored by: GoToMeeting - the easiest way to
>     > collaborate
>     > online with coworkers and clients while avoiding the high cost of
>     > travel and
>     > communications. There is no equipment to buy and you can meet as
>     > often as
>     > you want. Try it
>     > free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&op=click
>     > _______________________________________________
>     > iText-questions mailing list
>     > [email protected]
>     > https://lists.sourceforge.net/lists/listinfo/itext-questions
>     >
>     > __________________________________________________
>     > Do You Yahoo!?
>     > Tired of spam? Yahoo! Mail has the best spam protection around
>     > http://mail.yahoo.com
>     >
> 
>     -- 
>     cheeser You can find my blog at http://cheeser.blog-city.com
>     and on AIM as "evan chooly"
> 
> 
>     -------------------------------------------------------
>     SF.Net email is sponsored by: GoToMeeting - the easiest way to
>     collaborate
>     online with coworkers and clients while avoiding the high cost of
>     travel and
>     communications. There is no equipment to buy and you can meet as
>     often as
>     you want. Try it
>     free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&op=click
>     _______________________________________________
>     iText-questions mailing list
>     [email protected]
>     https://lists.sourceforge.net/lists/listinfo/itext-questions
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
> 

-- 
cheeser      You can find my blog at http://cheeser.blog-city.com
             and on AIM as "evan chooly"


-------------------------------------------------------
SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate
online with coworkers and clients while avoiding the high cost of travel and
communications. There is no equipment to buy and you can meet as often as
you want. Try it free.http://ads.osdn.com/?ad_id=7402&alloc_id=16135&op=click
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to