首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >BIRT运行时下载/ BIRT查看器

BIRT运行时下载/ BIRT查看器
EN

Stack Overflow用户
提问于 2014-09-28 18:38:28
回答 7查看 9.5K关注 0票数 2

我是BIRT的新手,并且设法使用Eclipse创建了一些报告。我可以通过Eclipse的"BIRT查看器“查看报告。

但是我不能将报告部署到Eclipse之外。文档描述了在部署报表之前要部署到应用程序/web服务器的"birt.war“。

我在哪里可以找到BIRT运行时,它应该有"BIRT查看器“。

在Thx之前,

EN

回答 7

Stack Overflow用户

发布于 2014-09-29 22:53:23

BIRT运行时必须单独下载,您可以在eclipse页面上下载:

http://download.eclipse.org/birt/downloads/#runtime

您将在归档文件中找到birt.war。

票数 5
EN

Stack Overflow用户

发布于 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中看到

票数 1
EN

Stack Overflow用户

发布于 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()。

示例:

代码语言:javascript
复制
    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
}
票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/26084044

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档