我是BIRT的新手,并且设法使用Eclipse创建了一些报告。我可以通过Eclipse的"BIRT查看器“查看报告。
但是我不能将报告部署到Eclipse之外。文档描述了在部署报表之前要部署到应用程序/web服务器的"birt.war“。
我在哪里可以找到BIRT运行时,它应该有"BIRT查看器“。
在Thx之前,
发布于 2014-09-29 22:53:23
BIRT运行时必须单独下载,您可以在eclipse页面上下载:
http://download.eclipse.org/birt/downloads/#runtime
您将在归档文件中找到birt.war。
发布于 2015-04-26 04:25:05
birt运行时的最后一个版本在这里,下载完后,你把所有的.rptdesign文件放在.war中,然后部署到你的java服务器上。例如:在tomcat中是webapps文件夹,在wildfly中是standalone\deployments。您可以在url http://localhost:8080/birt/frameset?__report=YOU_REPORT.rptdesign中看到
发布于 2017-03-15 22:44:13
您可以使用BIRT Runtime,或者从另一方面来说,您有从java类运行的过程。在这种方法中,您不需要使用BIRT Runtime,您只需要在文档中将.jar文件添加到项目中,您将看到更多信息。
来自BIRT的文档:http://www.eclipse.org/birt/documentation/integrating/reapi.php
首先,您需要了解Java Class中的运行时称为EngineConfig()。
示例:
try{
final EngineConfig config = new EngineConfig( );
//BIRT provides two ways of doing the reports externally
//1.- BIRT Runtime is kind of difficult to configure
//2.- POJO It uses classes into a Java class (You need to import the emitters from the format you'll use and other libraries.
//config.setEngineHome( "C:\\birt-runtime-2_6_2\\birt-runtime-2_6_2\\ReportEngine" );
config.setLogConfig("c:/temp", Level.FINE);
Platform.startup( config );
//If using RE API in Eclipse/RCP application this is not needed.
IReportEngineFactory factory = (IReportEngineFactory) Platform
.createFactoryObject( IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY );
IReportEngine engine = factory.createReportEngine( config );
engine.changeLogLevel( Level.WARNING );
}catch( Exception ex){
ex.printStackTrace();
}
// Run reports, etc.
...
//On the page it's the explanation to create the container and the properties for the report, like the selection of the rptdesign to be used, the parameters, the outputfile path, outputfile format, etc.
//IRunTask and IRunandRenderTask are the method to send the options to the Runtime class that will get the report, output, etc.
//EXACTLY ON THE EMITTERS CONFIGURATION'
// destroy the engine.
try
{
engine.destroy();
Platform.shutdown();
//Bugzilla 351052
RegistryProviderFactory.releaseDefault();
}catch ( EngineException e1 ){
// Ignore
}https://stackoverflow.com/questions/26084044
复制相似问题