By Date: <-- -->
By Thread: <-- -->

Mulitrow columns - nested cells



Hi All,

Bruno, you were right! It works with the inner table. 

Nevertheless I had to deactivate the border for the cell which surrounds
cell 2 and 3. Otherwise I would see both rectangles within the surrounding
table.

> cell 2 and 3 are part of the inner table.
>Why do you deactivate their borders? There's no reason to.

I took
http://itext.ugent.be/library/com/lowagie/examples/objects/tables/NestedTabl
es.pdf as an example. -> That?s exactly what I won't!

Regarding the logo problem: Fixed it with a page event!

Thank you,
Dennis


-----Ursprüngliche Nachricht-----
Von: itext-questions-bounces (at) lists.sourceforge.net
[mailto:itext-questions-bounces (at) lists.sourceforge.net] Im Auftrag von Bruno
Lowagie
Gesendet: Samstag, 3. Februar 2007 19:14
An: Post all your questions about iText here
Betreff: Re: [iText-questions] Mulitrow columns - nested cells

Dennis van Genabith wrote:
> I do have two questions:
> 1.) How to create a PdfPTable in the following way:
> -----------------
> |   1  |___2____|
> |______|___3____|

Piece of cake with a nested PdfPTable.

> But when I? trying to apply this idea to my solution, it won?t work: 

It works for me.

> First reason is, if I?m deactivating the border for cell 2 and 3 I?m 
> missing the line between 2 and 3.

cell 2 and 3 are part of the inner table.
Why do you deactivate their borders? There's no reason to.

> When I?m turning on the borders for 2 and 3, I can see these both boxed 
> within one box.

You probably forgot to set the padding of the cell
with the nested table to 0. Have you tried the
example that comes with the book? On page 177,
cells 1.1 and 1.2 show what you have, whereas
cells 20.1 and 20.2 show what you want.

> 2.) Right now I?m placing a logo to the top-right corner of the page. 

How are you adding the logo. In a page event?

> But when I?m getting larger tables they are floating to the next page 
> and thereby overwriting the logo in parts. Any Ideas? Setting the 
> picture into the header and thus preventing this situation?

I'm not sure what you're doing here.
Do you want the logo to appear on each page?
Then you should add the logo in a page event,
and make sure the top margin is large enough
so that the content added with document.add()
doesn't overwrite the header.

br,
Bruno

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job
easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions (at) lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions (at) lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/