Hi Bruno,
Thanks for your reply,

the lotus notes document I am referring to is.. docCon

AgentContext agentContext = session.getAgentContext(); 
lotus.domino.Document docCon = agentContext.getDocumentContext();
Database db = agentContext.getCurrentDatabase();
lotus.domino.Name uName =
session.createName(docCon.getItemValueString("REMOTE_USER"));

String userInput = docCon.getItemValueString( "SomeText" );
if ( userInput == null ) userInput = "Nothing Entered";

userInput is a field on docCon...

How can I pass the userInput (better yet the entire docCon) and make it
available in the EndPage class?

Hope this makes more sense.... Thanks so much for your help and great
library.




Bruno Lowagie (iText) wrote:
> 
> TommySawyer wrote:
>> I have a handle on a notes document and want to collect some data off of
>> it for my header and footer.
>>
>> I can use data off it for the body of the pdf no problem but once I hit
>> the EndPage class I can not access the document.
> I had a glance at your code, and I don't really understand what happens,
> but I assume that your notes document is: lotus.domino.Document tempDoc?
>>   How can I pass either this
>> lotus document to the endpage class (hopefully so I can gather my dynamic
>> data) OR at least pass the text values I need ahead of time?
>>   
> You have created PdfPageEventHelper subclass with some member
> variables. You add the tempDoc object as a member variable and
> pass it with a setter method (or in the constructor). That way, it can
> be consulted in the onEndPage method.
> 
> Of course, this won't work if you mean that the tempDoc variable
> can't be set in the event before onEndPage is called for the first time,
> but in that case, I didn't understand the question and you should 
> rephrase it.
> br,
> Bruno
> 
>  
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> iText-questions mailing list
> iText-questions@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/itext-questions
> Buy the iText book: http://itext.ugent.be/itext-in-action/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Help-with-EndPage-tp15130941p15137719.html
Sent from the iText - General mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to