birt 片斷代碼

protected IReportEngine reportEngine = null;ide

protected IReportRunnable design = null;orm

design = reportEngine.openReportDesign(reportFilePath);
task = reportEngine.createRunAndRenderTask(design);ip

task.addScriptableJavaObject("listBean",
pageList == null ? new ArrayList<Object[]>() : pageList);get

HTMLRenderOption option = new HTMLRenderOption();
option.setOutputFormat(HTMLRenderOption.OUTPUT_FORMAT_HTML);
option.setOutputStream(response.getOutputStream());
task.setRenderOption(option);
task.run();it

相關文章
相關標籤/搜索