Hi,

please help me with implementing the following behaviour:

I have a long PdfPTable with one row in header. I would like to have a
printout where table header is blue and rows below header have a background
alternately changed: first row white background, next one blue background,
next one white etc.

If rows are added to a table with alternately changed background it will not
solve a problem, because when page is broken and new part of table is
printed then header has blue background and row below can also has blue
background.

Example:


Original table                                    Table afer broking a page

------------------------------
------------------------------
|   header row (blue) |                        |   header row (blue) |
 ------------------------------
------------------------------
|   data row1(white)   |                       |   data row1(white)   |
  ------------------------------
------------------------------
|   data row2(blue)    |                        |   data row2(blue)    |
  ------------------------------
------------------------------
|   data row3(white)   |                       |   data row3(white)   |
  ------------------------------
------------------------------
|   data row4(blue)    |
 ------------------------------
------------------------------
                                                       |   header row
(BLUE)|   !!!

------------------------------
                                                      |   data row4(BLUE)
|   !!!

------------------------------

br
michal
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Do you like iText?
Buy the iText book: http://www.1t3xt.com/docs/book.php
Or leave a tip: https://tipit.to/itexttipjar

Reply via email to