Best practice to add an empty row in a PdfPTable (assumption to be verified)

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

Best practice to add an empty row in a PdfPTable (assumption to be verified)

by Martin Weiss :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all iText cracks,
I know, I very basic question. But to my surprise I have not found an answer neither in the newsgroup nor in the book.

My assumption (PdfPTable with 4 columns):
=> PdfPCell.setColspan(4);

Correct ?
Thanks a lot and kind regards,
Martin

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
iText-questions mailing list
iText-questions@...
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Re: Best practice to add an empty row in a PdfPTable (assumption to be verified)

by 1T3XT info :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

martin.weiss@... wrote:
> Hi all iText cracks,
> I know, I very basic question. But to my surprise I have not found an answer neither in the newsgroup nor in the book.
>
> My assumption (PdfPTable with 4 columns):
> => PdfPCell.setColspan(4);
>
> Correct ?

If the row is really empty, then the row will have zero height, and it
will not be visible as such. Of course: if you define a minimumHeight
(or a fixed height), then it will work.

This won't be in the new book either, because adding an empty row...
Isn't that rather unusual? As you say yourself: it's the first time the
question pops up on the mailing-list.
--
This answer is provided by 1T3XT BVBA
http://www.1t3xt.com/ - http://www.1t3xt.info

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
iText-questions mailing list
iText-questions@...
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/