By Date: <-- -->
By Thread: <-- -->

Different headers



I'm creating a document that has two different PdfPTable objects in it.
I want table A to have a header on every page on which it appears, and
then switch to table B and its header for all subsequent pages. In
onStartPage(), I have the following:
                   
 if (printColumnTitles == PRINT_HEADER)
 {
  document.add(headerA);
 }
 else if (printColumnTitles == PRINT_SUMMARY)
 {
  document.add(headerB);
 }

And I adjust printColumnTitles as needed. The problem is that headerA
shows up after I want to use only headerB. There doesn't seem to be a
method to remove the element headerA from the document, so instead, I
need to......?

Thanks.

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions (at) lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions