Package org.eclipse.birt.report.engine.api

Examples of org.eclipse.birt.report.engine.api.IRunAndRenderTask.run()


        task.setRenderOption(options);

        // run report
        Debug.logInfo("Birt's locale is: " + task.getLocale(), module);
        Debug.logInfo("Run report's task", module);
        task.run();
        task.close();
    }
   
    public static void setWebContextObjects(IReportEngine engine, HttpServletRequest request, HttpServletResponse response) {
        HttpSession session = request.getSession();
View Full Code Here


        task.setRenderOption(options);

        // run report
        Debug.logInfo("BIRT's locale is: " + task.getLocale(), module);
        Debug.logInfo("Run report's task", module);
        task.run();
        task.close();
    }
   
    /**
     * set web context objects
View Full Code Here

        task.getAppContext().put("org.eclipse.datatools.enablement.oda.xml.inputStream", stream);       
            }
     
      log.info("Generating BIRT report: " + report.getName());
     
      task.run();           
      task.close();
     
      log.info("Finished Generating BIRT report: " + report.getName());
     
      output.setContent(out.toByteArray());
View Full Code Here

        task.setRenderOption(options);

        // run report
        Debug.logInfo("Birt's locale is: " + task.getLocale(), module);
        Debug.logInfo("Run report's task", module);
        task.run();
        task.close();
    }
}
View Full Code Here

            options.setOutputStream((OutputStream) context.get("outputStream"));
            options.setOutputFormat("html");
            options.setEmbeddable(false);

            task.setRenderOption(options);
            task.run();
            task.close();

            result = ServiceUtil.returnSuccess("Render Report Complete");
        } catch (EngineException e) {
            e.printStackTrace();
View Full Code Here

            options.setOutputStream((OutputStream) context.get("outputStream"));
            options.setOutputFormat("html");
            options.setEmbeddable(false);

            task.setRenderOption(options);
            task.run();
            task.close();

            result = ServiceUtil.returnSuccess("Render Report Complete");
        } catch (EngineException e) {
            e.printStackTrace();
View Full Code Here

            options.setOutputStream((OutputStream) context.get("outputStream"));
            options.setOutputFormat(HTMLRenderOption.OUTPUT_FORMAT_HTML);
            options.setEmbeddable(false);

            task.setRenderOption(options);
            task.run();
            task.close();

            result = ServiceUtil.returnSuccess("Render Report Complete");
        } catch (EngineException e) {
            e.printStackTrace();
View Full Code Here

      injectHTMLHeader(response);
    }
    */
   
    try {
      task.run();
    } catch(Exception e) {
      logger.error("Error while running the report: " + e);
    }
    task.close();
   
View Full Code Here

            options.setImageHandler(new HTMLServerImageHandler());
            options.setBaseImageURL(SystemListener.getContextPath() + "/platform/reports/images");
            options.setImageDirectory(FileUtils.getAbsolutePath("/platform/reports/images"));
            task.setRenderOption(options);

            task.run();
            task.close();
            total=(float)Runtime.getRuntime().totalMemory()/1000000 - total;
            LOG.info("完成渲染报表,耗时:"+ConvertUtils.getTimeDes(System.currentTimeMillis()-start)+" ,耗费内存:"+total+"M");
            return out.toByteArray();
        } catch (EngineException | NumberFormatException e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.