[RESOLVIDO] Gerar 2 páginas de relatório (subReport) - iReport 4.1.1

Olá pessoal,

Estou com um problema sério na geração do relátorio.

Tenho um relatório que deve ter duas páginas, e apenas na primeira uso parâmetros, a segunda folha são campos simples (apenas de impressão).
Funcionam certinho. Porém gostaria de chamar essa segunda página como um sub-relatório, e aí que gera o problema…

Eu criei na página 1 um subreport, ao tentar executar sempre exibe o mesmo erro:

Error filling print... Band height validation for subreport "ficha_pronto_atendimento2" failed in the current page context (height = 842, top margin = 56, bottom margin = 56) : 1. The title section, the page and column headers and footers and the margins do not fit the page height. 2. The page and column headers and footers and the margins do not fit the page height. 3. The page and column headers and footers and the margins do not fit the last page height. For input string: "" net.sf.jasperreports.engine.design.JRValidationException: Band height validation for subreport "ficha_pronto_atendimento2" failed in the current page context (height = 842, top margin = 56, bottom margin = 56) : 1. The title section, the page and column headers and footers and the margins do not fit the page height. 2. The page and column headers and footers and the margins do not fit the page height. 3. The page and column headers and footers and the margins do not fit the last page height. at net.sf.jasperreports.engine.fill.JRFillSubreport.verifyBandHeights(JRFillSubreport.java:1031) at net.sf.jasperreports.engine.fill.JRFillSubreport.validateReport(JRFillSubreport.java:993) at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluateSubreport(JRFillSubreport.java:368) at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluate(JRFillSubreport.java:272) at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:257) at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:468) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillBandNoOverflow(JRVerticalFiller.java:440) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillPageHeader(JRVerticalFiller.java:404) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:265) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:129) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:903) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:813) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:58) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:417) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:247) at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:878) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)

Já tentei fazer uma “gambiarra” também, aumentando a página para o dobro de uma A4 e dando quebra de página…Não funcionou TAMBÉM. (Ele não obedece a quebra de página).

Já fiz várias pesquisas, mas não obtive um resultado positivo.
Estou usando o iReport 4.1.1

POR FAVOR, alguém me ajudar? :cry:

ja tive que fazer um report com 2 páginas!
Fiz assim, criei 3 projetos. 1º projeto para a 1 página, 2º projeto para 2 página.
o 3º projeto coloquei um subreport chamando o 1º projeto, depois coloquei uma quebra de página e em seguida outra subreport para o 2º projeto!

Já tentou maximiza a banda…
lá no Report Inspector vai na banda que tu quer que fique na primeira pagina
Exemplo nos details, botão direito e Maximize Band Height. Ele ocupara a pagina inicial, ai o q tiver depois da banda irá pra segunda página
Fiz aqui e deu certo…