Hi Bruno!
I explain you about my problem.
Before I build my pdf, I retrieve information from my database and I filled my hashtable.
I use a hashtable to use it as follow:
As key.. |..as value...
"title" | Title information from my database
"header" | Header information from my database..
and thus...
I don't want a ordered collection.......and I'm sure I have got all data from my database.
But, I'm getting to generate a header my hashtable appears empty....
One question..Why we create a new object (in my case, Pagina) when we want generate a new event (in my case onEndPage)?
Could be my hashtable object empty when I'm calling this event?
Could be a new object Pagina, and thus, the (new) hashtable appears empty?
Thanks Bruno.
2006/7/31, Bruno Lowagie <[EMAIL PROTECTED]>:
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
--
Recibe un saludo,
Abelardo León González
------------------------------------------------------------------------- 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
