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();
}
private static void initEngine() {
EngineConfig conf = new EngineConfig();