Title: Message
It's not a bug. As you say, it's a table with headers and no content. If it doesn't have content there's nothing to print.


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Cary Sweet
Sent: Monday, November 22, 2004 11:37 PM
To: [EMAIL PROTECTED]
Subject: [iText-questions] ColumnText bug?

Expected Results:
Header line of the table to be displayed
 
Actual Results:
When I created a PdfTable with a header and no content, nothing displayed
 
Code version: iText 1.1
Class: ColumnText
Method: goComposite(boolean simulate)
Line: 1179
 
                if (table.size() <= table.getHeaderRows()) {
I believe should be
 
                if (table.size == 0 || table.size() < table.getHeaderRows()) {
 
With this in place, the header line(s) of the table will be displayed even though the table has no other rows.

-----Original Message-----
From: Cary Sweet
Sent: November 22, 2004 3:58 PM
To: [EMAIL PROTECTED]
Subject: [iText-questions] PdfTable Bug?

I was looking through the code and came across something that did not look correct:
 
Code version: iText 1.1
Class: PdfPTable
Method: constructor: PdfPTable(PdfPTable table)
Line: 200
 
        skipFirstHeader = this.skipFirstHeader;
I believe should be
 
        skipFirstHeader = table.skipFirstHeader;


This message, including any attachments, is intended only for the person(s) to whom it is addressed. If you received it in error, please let us know and delete the message from your system. This message may be confidential and may fall under the duty of non-disclosure. Any use by others than the intended addressee is prohibited. Trema shall not be liable for any damage related to the electronic transmission of this message, such as failure or delay of its delivery, interception or manipulation by third parties, or transmission of viruses or other malicious code.


This message, including any attachments, is intended only for the person(s) to whom it is addressed. If you received it in error, please let us know and delete the message from your system. This message may be confidential and may fall under the duty of non-disclosure. Any use by others than the intended addressee is prohibited. Trema shall not be liable for any damage related to the electronic transmission of this message, such as failure or delay of its delivery, interception or manipulation by third parties, or transmission of viruses or other malicious code.

Reply via email to