Examples of newSessionHandle()


Examples of org.eclipse.birt.report.model.api.IDesignEngine.newSessionHandle()

  private static void initDesigner() throws BirtException {
    DesignConfig config = new DesignConfig();
    Platform.startup(config);
    IDesignEngineFactory factory = (IDesignEngineFactory) Platform.createFactoryObject(IDesignEngineFactory.EXTENSION_DESIGN_ENGINE_FACTORY);
    IDesignEngine engine = factory.createDesignEngine(config);
    SessionHandle session = engine.newSessionHandle(ULocale.ENGLISH);

    reportDesignHandle = session.openDesign(inputReportFile);
    elementFactory = reportDesignHandle.getElementFactory();
  }
View Full Code Here

Examples of org.eclipse.birt.report.model.api.IDesignEngine.newSessionHandle()

      IDesignEngineFactory factory = (IDesignEngineFactory) Platform
          .createFactoryObject(IDesignEngineFactory.EXTENSION_DESIGN_ENGINE_FACTORY);
      engine = factory.createDesignEngine(dconfig);

      // create a new session
      SessionHandle session = engine.newSessionHandle(ULocale.ENGLISH);

      // create a design or a template. Then create a report element
      // factory
      ReportDesignHandle design = session.createDesign();
      ElementFactory efactory = design.getElementFactory();
View Full Code Here

Examples of org.eclipse.birt.report.model.api.IDesignEngine.newSessionHandle()

          .createFactoryObject(IDesignEngineFactory.EXTENSION_DESIGN_ENGINE_FACTORY);
      dengine = factory.createDesignEngine(dconfig);

      // create a new session, open the library, and retrieve the first
      // data source since it is uniform in our library
      SessionHandle session = dengine.newSessionHandle(ULocale.ENGLISH);
      LibraryHandle design = session
          .openLibrary("C:/eclipse/GWTBirt/BIRTGwt/src/reports/DataSets.rptlibrary");
      dataSourceHandle = (DataSourceHandle) design.getDataSources()
          .get(0);
View Full Code Here

Examples of org.eclipse.birt.report.model.api.IDesignEngine.newSessionHandle()

    }
    catch( Exception ex ) {
      ex.printStackTrace();
    }

    SessionHandle session = engine.newSessionHandle(ULocale.ENGLISH);

    try {
      //open a design or a template
      designHandle = session.openDesign("d:/Data Store/Project/birt-demo/WebContent/birt/reports/test_report.rptdesign");
View Full Code Here

Examples of org.eclipse.birt.report.model.api.IDesignEngine.newSessionHandle()

    } catch (Exception ex) {
      ex.printStackTrace();
    }

    SessionHandle session = engine.newSessionHandle(ULocale.ENGLISH);

    // Create a new report
    reportDesignHandle = session.createDesign();

    // Element factory is used to create instances of BIRT elements.
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.