Cell width

View: New views
2 Messages — Rating Filter:   Alert me  

Cell width

by Kharas :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

I'm adding a Cell containing an Image to a Table object that I'm adding to a header. I wanna know the exact width of the cell, so I can dimension the remaining cells of the row accordingly. I've tried to retrieve  the Cell and Table witdh using the methods Cell.cellWidth(), Table.absWidth() and Table.width(), but  I get  the following values null, "" and 0.0. Is there any way to obtain the percentage occupied by each cell, or this behaviour is part of the same bug causing Table.setWidth() not working properly?

Thanks.

Re: Cell width

by Bruno Lowagie (iText) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Kharas wrote:

>Hi
>
>I'm adding a Cell containing an Image to a Table object that I'm adding to a
>header. I wanna know the exact width of the cell, so I can dimension the
>remaining cells of the row accordingly. I've tried to retrieve  the Cell and
>Table witdh using the methods Cell.cellWidth(), Table.absWidth() and
>Table.width(), but  I get  the following values null, "" and 0.0. Is there
>any way to obtain the percentage occupied by each cell, or this behaviour is
>part of the same bug causing Table.setWidth() not working properly?
>  
>
This is an odd question; iText doesn't calculate the width of a cell.
You define the widths yourself just after creating the table object.
If you define the widths yourself, why ask iText? Ask yourself.
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@...
https://lists.sourceforge.net/lists/listinfo/itext-questions