Abelardo León González wrote: > Once I have collected all data, I'm trying build a PDF file. > > When I try set a header, on method 'onEndPage' I cannot get that > data...because "disappears" it!
In that case, you have probably made a programming error somewhere. It is not an iText related problem. > Steps are following: > > 1) Before I create a Document, I retrieve all data from database. Do you mean you have a ResultSet object? > 2) Then, I create a Document. After, I have this line: > writer.setPageEvent(new Pagina()) > > Pagina is my class which extends PdfPageEventHelper > > 3) I suppose I have got all my data from database (made before executes > option 2) ..but nothing. You suppose? Or you are sure? > My hashtable (my collection) is nothing. You have your data stored in a hashtable? That's odd. Don't you want the data to be sorted? > Why disappears it my collection data on 'onEndPage' method?..... > What's wrong about it? It has nothing to do with the onEndPage method. br, Bruno ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
