PDFOutputTarget target =
new PDFOutputTarget(out, report.getDefaultPageFormat());
target.configure(report.getReportConfiguration());
target.open();
PageableReportProcessor proc = new PageableReportProcessor(report);
proc.setOutputTarget(target);
proc.processReport();
target.close();
}
catch (Exception ex)

...{
System.err.println("Generate PDF failed: " ex);
}
finally

...{
try

...{
out.close();
}
catch (Exception e)

...{
System.err.println("Output PDF failed: " e);
}
}
}

/**//**
* @see javax.servlet.http.HttpServlet#void (javax.servlet.http.HttpServletRequest,

RSS订阅




