BIRT运行时下载/ BIRT查看器

问题描述 投票:0回答:6

我是BIRT的新手,并设法使用Eclipse创建一些报告。我可以通过Eclipse的“BIRT Viewer”看到该报告。

但我无法在Eclipse之外部署报告。该文档描述了在部署报告之前要部署到应用程序/ Web服务器的“birt.war”。

从哪里可以找到应该具有“BIRT查看器”的BIRT运行时。

Thx提前,

birt viewer
6个回答
4
投票

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

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

你会在档案馆里找到birt.war。


1
投票

您可以使用BIRT Runtime,或者另一方面您可以使用从java类运行的过程。在此方法中,您不需要使用BIRT运行时,只需将.jar文件添加到文档中的项目中,您将看到更多信息。

来自BIRT的文件:http://www.eclipse.org/birt/documentation/integrating/reapi.php

刚开始,您需要了解Java类中的Runtime被称为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
}

0
投票

我建议将运行时作为qazxsw poi包含在Web项目中。这样您就可以完全控制和无缝集成。

maven dependency

0
投票

birt运行时的最后一个版本就在这里<dependency> <groupId>org.eclipse.birt.runtime</groupId> <artifactId>org.eclipse.birt.runtime</artifactId> <version>4.4.1</version> </dependency> 下载后你将.war所有的.rptdesign文件放入你的java服务器中。例如:在tomcat中是webapps文件夹,在wildfly中是standalone \ deployments。你可以在网址http://www.eclipse.org/downloads/download.php?file=/birt/downloads/drops/R-R1-4_4_2-201502171805/birt-runtime-4_4_2-20150217.zip中看到



0
投票

请下载BIRT ENGINE并将其部署到您的服务器中。并通过更改.BAT文件,您可以灵活。我希望它可以帮助你

© www.soinside.com 2019 - 2024. All rights reserved.