Randy Hoover, Randy E. Hoover wrote > I am calling the event when the CreatePDF method is called and looping > thru each day (setting the member variable in foreach loop) ... the > EndOfPage event is called during creation of PDF from stream after > CreatePDF ... hence the only stored value in the setter is the last day > (Saturday)
In that case you may not merely need a simple setter but instead a method which only accepts the value from the first call after some event (e.g. after OnStartPage or after start-of-new-column) or which remembers the last value from before some such event in a separate variable. I.e. essentially a generic programming task. Depending on how exactly you draw the content on the pages you might require the information on how to identify some event. For such information, though, you need to provide your code (pivital code blocks only, please, not some DB access or user interface eventing stuff, please). Regards, Michael -- View this message in context: http://itext-general.2136553.n4.nabble.com/itext-with-dynamic-headers-tp4660112p4660120.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Open source business process management suite built on Java and Eclipse Turn processes into business applications with Bonita BPM Community Edition Quickly connect people, data, and systems into organized workflows Winner of BOSSIE, CODIE, OW2 and Gartner awards http://p.sf.net/sfu/Bonitasoft _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions iText(R) is a registered trademark of 1T3XT BVBA. Many questions posted to this list can (and will) be answered with a reference to the iText book: http://www.itextpdf.com/book/ Please check the keywords list before you ask for examples: http://itextpdf.com/themes/keywords.php