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

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


            throw new ContainerException(e);
        }

        // create report engine
        Debug.logInfo("Create factory object", module);
        IReportEngineFactory factory = (IReportEngineFactory) Platform
              .createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY);
        if (factory == null) {
            throw new ContainerException("can not create birt engine factory");
        }
        Debug.logInfo("Create report engine", module);
        IReportEngine engine = factory.createReportEngine(config);
        BirtFactory.setReportEngine(engine);
       
        // print supported formats
        String[] supportedFormats = engine.getSupportedFormats();
        String formatList = null;
View Full Code Here


    config.setEngineHome("");
    IPlatformContext context = new PlatformServletContext(servletContext);
    config.setPlatformContext(context);

    Platform.startup(config);
    IReportEngineFactory factory = (IReportEngineFactory) Platform
      .createFactoryObject( IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY );
    engine = factory.createReportEngine(config);
       
    runnable = engine.openReportDesign(new StringInputStream(report.getReportText()));
    task = engine.createRunAndRenderTask(runnable);
  }
View Full Code Here

    try {
      config = new EngineConfig();
      config.setLogConfig(null, Level.FINE);

      Platform.startup(config);
      IReportEngineFactory factory = (IReportEngineFactory) Platform
          .createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY);
      engine = factory.createReportEngine(config);
      engine.changeLogLevel(Level.WARNING);

    } catch (Exception ex) {
      ex.printStackTrace();
    }
View Full Code Here

    catch (BirtException e)
    {
      log.error("BirtException", e);
    }

    IReportEngineFactory factory = (IReportEngineFactory) Platform
        .createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY);
   
    birtEngine = factory.createReportEngine(config);
   
    log.info("BIRT Engine Started");
     
    birtEngine.changeLogLevel(Level.SEVERE)
  }
View Full Code Here

            throw new ContainerException(e);
        }

        // create report engine
        Debug.logInfo("Create factory object", module);
        IReportEngineFactory factory = (IReportEngineFactory) Platform
              .createFactoryObject( IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY );
        if (factory == null) {
            throw new ContainerException("can not create birt engine factory");
        }
        Debug.logInfo("Create report engine", module);
        engine = factory.createReportEngine( config );
        String[] supportedFormats = engine.getSupportedFormats();
        String formatList = null;
        for (String supportedFormat : supportedFormats) {
            if (formatList != null) {
                formatList += ", " + supportedFormat;
View Full Code Here

    config.setLogConfig(logdir, Level.FINE);
    config.setEngineHome(platform);
       
    try {
      Platform.startup(config);
      IReportEngineFactory factory = (IReportEngineFactory) Platform.createFactoryObject( IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY );
      engine = factory.createReportEngine(config)
     
    } catch (BirtException e) {
      Debug.logError(e, module);
    }
   
View Full Code Here

    logger.debug("Birt Platform started");
      } catch (BirtException e) {
    logger.error("Error during Birt Platform start-up", e);
      }

      IReportEngineFactory factory = (IReportEngineFactory) Platform
        .createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY);
      birtEngine = factory.createReportEngine(config);
      logger.debug("Report engine created");

  }
  return birtEngine;
    }
View Full Code Here

      {
         EngineConfig config = new EngineConfig( );
         config.setBIRTHome(iConfig.getBirtHome());

         Platform.startup( config );
         IReportEngineFactory factory = (IReportEngineFactory) Platform
               .createFactoryObject( IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY );

         IReportEngine engine = factory.createReportEngine( config );
         return engine;
      }
      catch (BirtException e)
      {
         throw new RuntimeException("Failed to create birt engine", e);
View Full Code Here

   {
      try
      {
         EngineConfig config = new EngineConfig( );
         Platform.startup( config );
         IReportEngineFactory factory = (IReportEngineFactory) Platform
               .createFactoryObject( IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY );

         IReportEngine engine = factory.createReportEngine( config );
         return engine;
      }
      catch (BirtException e)
      {
         throw new RuntimeException("Failed to create birt engine", e);
View Full Code Here

                Platform.startup(config);
            } catch (BirtException e) {
                LOG.error("BIRT启动失败",e);
            }

            IReportEngineFactory factory = (IReportEngineFactory) Platform.createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY);
            reportEngine = factory.createReportEngine(config);
            total=(float)Runtime.getRuntime().totalMemory()/1000000 - total;
            LOG.info("完成初始化报表引擎,耗时:"+ConvertUtils.getTimeDes(System.currentTimeMillis()-start)+" ,耗费内存:"+total+"M");
        }
        return reportEngine;
    }
View Full Code Here

TOP

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

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.