BIRT Integration With Liferay DXP 7.4 Portlet #1472
Unanswered
amitmaurya201
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I designed the Birt report using Birt Designer 4.9.0 version and I created a scripted data source then I want to read that Birt file in liferay portelt programmitically for that purpose I used org.eclipse.birt.runtime 4.4.2 and also i resolve all the transitive dependencies after that I need to initialize the birt engine using this code
private IReportEngine getReportEngine() {
IReportEngine engine = null;
EngineConfig config = null;
try {
config = new EngineConfig();
// config.setEngineHome( "C:\Users\Admin\Downloads\birt-runtime-4.8.0-20180626\ReportEngine" );
IPlatformContext context = new PlatformFileContext( );
config.setEngineContext( context );
Platform.startup(config);
IReportEngineFactory factory = (IReportEngineFactory) Platform
.createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY);
engine = factory.createReportEngine(config);
} catch (BirtException ex) {
LOGGER.error(ex);
}
return engine;
}
but in IReportEngineFactory factory object, i m getting a null in this
IReportEngineFactory factory = (IReportEngineFactory) Platform
.createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY);
please suggest me appropriate solution regarding this (I am using this code in the Liferay DXP 7.4 portlet)
Beta Was this translation helpful? Give feedback.
All reactions