Existe isso no iReport?

2 respostas
dahenz

Pessoal… gostaria de saber se existem comandos de beforePrint e afterPrint no iReport como no bom e velho ReportBuilder do Delphi…

Obrigado.

2 Respostas

LeandroRodrigues

Não cheguei a usar mas no livro The Definitive Guide to iReport fala um pouco sobre isso. (ainda não chei nessa parte do livro)

public class JRDefaultScriptlet extends JRAbstractScriptlet { public JRDefaultScriptlet() { } public void beforeReportInit() throws JRScriptletException { } public void afterReportInit() throws JRScriptletException { } public void beforePageInit() throws JRScriptletException { } public void afterPageInit() throws JRScriptletException { } public void beforeColumnInit() throws JRScriptletException { } public void afterColumnInit() throws JRScriptletException { } public void beforeGroupInit(String groupName) throws JRScriptletException { } public void afterGroupInit(String groupName) throws JRScriptletException { } public void beforeDetailEval() throws JRScriptletException { } public void afterDetailEval() throws JRScriptletException { } }

Event/Method

Before Report Init
This is called before the report initialization (i.e., before all variables are
initialized).

After Report Init
This is called after all variables are initialized.

Before Page Init
This is called when a new page is created, before all variables having reset
type Page are initialized.

After Page Init
This is called when a new page is created and after all variables having
reset type Page are initialized.

Before Column Init
This is called when a new column is created, before all variables having
reset type Column are initialized; this event is not generated if the columns
are filled horizontally.

After Column Init
This is called when a new column is created, after all variables having
reset type Column are initialized; this event is not generated if the columns
are filled horizontally.

Before Group x Init
This is called when a new group x is created, and before all variables
having reset type Group and group name x are initialized.

After Group x Init
This is called when a new group x is created, and after all variables having
reset type Group and group name x are initialized.

Before Detail Eval
This is called before a detail band is printed and all variables are newly
evaluated.

After Detail Eval
This is called after a detail band

dahenz

Leandro, obrigado pela pronta resposta, mas estou com uma dúvida sobre o que me escreveu que é a seguinte:
- Isso é implementado dentro de uma classe do java?

Me fale mais sobre esse livro que tu está lendo… acho que vou precisar :lol:

Criado 18 de julho de 2008
Ultima resposta 18 de jul. de 2008
Respostas 2
Participantes 2