I'm sorry. I didn't meant to offend anybody. It was just a joke(lazyness I
mean).

Thanks for your help, I solved my problem. I  built latest jar from svn and
now setHeaderRows() works exactly as it should.


Bruno Lowagie (iText) wrote:
> 
> netslow wrote:
>> Well, it's very commendable.  But I still can't get any solution for my
>> problem.
>> It looks like a bug in iText...
> 
> And this patch fixes it:
> 
> Revision: 4030
>            http://itext.svn.sourceforge.net/itext/?rev=4030&view=rev
> Author:   blowagie
> Date:     2009-07-22 14:43:15 +0000 (Wed, 22 Jul 2009)
> 
> Log Message:
> -----------
> Rows in the header weren't treated the same way as other rows; this 
> caused problems if rowspan was used.
> 
> Modified Paths:
> --------------
>      trunk/src/core/com/lowagie/text/pdf/ColumnText.java
> 
> Modified: trunk/src/core/com/lowagie/text/pdf/ColumnText.java
> ===================================================================
> --- trunk/src/core/com/lowagie/text/pdf/ColumnText.java       2009-07-19 
> 07:44:32 UTC (rev 4029)
> +++ trunk/src/core/com/lowagie/text/pdf/ColumnText.java       2009-07-22 
> 14:43:15 UTC (rev 4030)
> @@ -1435,10 +1435,7 @@
> 
>                       // first we add the real header rows (if necessary)
>                       if (!skipHeader) {
> -                        for (int j = 0; j < realHeaderRows; ++j) {
> -                             PdfPRow headerRow = table.getRow(j);
> -                            sub.add(headerRow);
> -                        }
> +                        sub.addAll(table.getRows(0, realHeaderRows));
>                       }
>                       else
>                           nt.setHeaderRows(footerRows);
> 
> Please don't say we're lazy! You're not paying for our time!
> br,
> Bruno
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> 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/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/setHeaderRows-and-setRowSpan-tp24494391p24674967.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
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/

Reply via email to