Do you want me to guess about code that I never
saw?
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Fred
Sent: Tuesday, January 04, 2005 11:36 AM
To: [email protected]
Subject: RE: [iText-questions] Problems withs PdfPageEventHelperOk...I was suspecting of this!!!But, do you know as I could solve the problem??Variable "test" needs to be modified in the method create()!!!Thanks
Paulo Soares <[EMAIL PROTECTED]> wrote:The instance that calls create() is not the same that calls onEndPage().
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Fred
Sent: Monday, January 03, 2005 3:59 PM
To: [email protected]
Subject: [iText-questions] Problems withs PdfPageEventHelperHelloI´m trying to use a PdfPageEventHelper to write in top of all pages.This is my code:public class ReportTest extends PdfPageEventHelper {
public String test = "classVariable";
//create report
public void create() {
//here i create the document
test = "classVariableUpdate";
System.out.println("create: " + test);
}
public void onEndPage(PdfWriter writer, Document document) {
//here i write in top of all pages
System.out.println("onEndPage: " + test);
}
}But, when i run this:ReportTest report = new ReportTest();
report.create();
my report is create correctly, but i need to use the variable test in method "onEndPage" whith value "classVariableUpdate" and not with "classVariable". My log show this:
11:35:43,865 INFO [STDOUT] create: classVariableUpdate
11:35:48,181 INFO [STDOUT] onEndPage: classVariablei dont know what happen.
Thanks
Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador do Yahoo! agora.
Yahoo! Acesso Grátis - Internet rápida e grátis. Instale o discador do Yahoo! agora.
