Hi Everyone,

I have a need to create 1 table per page that lays out a result set top to bottom, left to right.

Now, if I leave iText to do the table layout for me, it does it left to right, top to bottom.

I'm thinking to do what I want I need to do a little more work myself.. that's fine.

What I have been thinking is that I need to know the height of my cell when it's created and divide that into the height of the table.

What I can't figure out is, how can I create a Cell with the data in it, then get the height of that cell?

I tried the following:

private float getCellHeight( Attributes dirAttrs ){
// call createCell and return the height of the resultant Cell
Cell c = createCell(dirAttrs);
return c.height(); }


where createCell does the work of text formating etc.

So once I know this, I can basically say, that if Cell height is 50 and table heght is 500, and I have a 3 column table, I can fit 30 Cells to the page, and then put the data into the table a using the new Point() method.

Does this look reasonable?

Anyone done something like this before got any tips?

Pete.




------------------------------------------------------- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to