Alguém sabe fazer para abrir o relatório e visualizar ao invés de InputStreamDownload ?
por exemplo :
# public InputStreamDownload relAlunos(String turma) throws JRException, SQLException, ClassNotFoundException {
# InputStream file = getClass().getClassLoader().getResourceAsStream("/br/com/catequese/relatorio/relAlunos.jasper");
# Map parametros = new HashMap();
# parametros.put("turma", turma);
# ByteArrayOutputStream os = new ByteArrayOutputStream();
# JasperRunManager.runReportToPdfStream(file, os, parametros, getConexao());
# InputStream document = new ByteArrayInputStream(os.toByteArray());
# return new InputStreamDownload(document, "application/pdf", "relatorioAlunos.pdf", true, os.toByteArray().length);
# }
ele vai criar um "relAlunos.pdf" mas queria ver esse relatório antes !
Obrigado !
