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

Examples of org.eclipse.birt.report.engine.api.HTMLServerImageHandler


  @SuppressWarnings("unchecked")
  public static synchronized void startBirtEngine(IPlatformContext context)
  {       
    log.info("Starting BIRT Engine and OSGI Platform using: " + context.getClass().getName());   
       
    HTMLServerImageHandler imageHandler = new HTMLServerImageHandler();
   
    HTMLRenderOption emitterConfig = new HTMLRenderOption();
    emitterConfig.setActionHandler(new HTMLActionHandler());   
    emitterConfig.setImageHandler(imageHandler);
View Full Code Here


    String imageBaseUrl = "/BirtImageServlet?imageID=";

    // Register new image handler
    HTMLRenderOption renderOption = new HTMLRenderOption();
    renderOption.setActionHandler(new HTMLActionHandler());
    HTMLServerImageHandler imageHandler = new HTMLServerImageHandler();
    renderOption.setImageHandler(imageHandler);
    renderOption.setImageDirectory(imageDirectory);
    renderOption.setBaseImageURL(contextPath + imageBaseUrl);
    renderOption.setEmbeddable(false);
    this.birtReportEngine.getConfig().getEmitterConfigs().put("html", renderOption);
View Full Code Here

           
            HTMLRenderOption options = new HTMLRenderOption();
            options.setOutputFormat(HTMLRenderOption.OUTPUT_FORMAT_HTML);
            ByteArrayOutputStream out = new ByteArrayOutputStream();
            options.setOutputStream(out);
            options.setImageHandler(new HTMLServerImageHandler());
            options.setBaseImageURL(SystemListener.getContextPath() + "/platform/reports/images");
            options.setImageDirectory(FileUtils.getAbsolutePath("/platform/reports/images"));
            task.setRenderOption(options);

            task.run();
View Full Code Here

TOP

Related Classes of org.eclipse.birt.report.engine.api.HTMLServerImageHandler

Copyright © 2018 www.massapicom. 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.