---
title: "[BIRT]-理解report engine API"
author: "flyingbug"
date: "2005-08-22T23:18:00Z"
tags: []
slug: "birt-report-engine-api"
draft: false
lastmod: "2005-08-22T23:18:00Z"
id: 40289
url: "https://flyingbug.iteye.com/blog/40289"
---

l         应用开发者只需要了解公用的API，这些API包含在以下的几个包内：

a)         [org.eclipse.birt.report.model.api](http://127.0.0.1:58131/help/topic/org.eclipse.birt.doc/model/api/org/eclipse/birt/report/model/api/package-summary.html)：这个包内包含了93个class，两个接口和一个exception，这个包是为那些想要定制report designer的开发者使用的&lt;o:p&gt;&lt;/o:p&gt;

b)        [org.eclipse.birt.report.engine.api](http://127.0.0.1:58131/help/topic/org.eclipse.birt.doc/engine/api/org/eclipse/birt/report/engine/api/package-summary.html)：这个包包含了一个类，17个接口和四个exception，是给那些想要定制一个report generator的开发者使用的&lt;o:p&gt;&lt;/o:p&gt;

c)        [org.eclipse.birt.chart hierarchy](http://127.0.0.1:58131/help/topic/org.eclipse.birt.doc/chart/api/index.html)：这个包是给想定制一个chart generator的开发者使用的&lt;o:p&gt;&lt;/o:p&gt;

l         BIRT report engine在几个环境提供了报表生成和翻译服务，包含以下组件：

a)         Stand-alone engine：这个engine可以让开发者使用一个命令行程序来从一个report design文件(.rptdesign)中得到Html或PDF格式的report

b)        BIRT report viewer：BIRT Report Designer使用它来预览report。这个程序是一个web程序，它运行在一个Eclipse内嵌的Tomcat中，这个Tomcat中有一个内嵌的report engine

c)        Custom report designer with an embedded engine：一个定制的桌面报表应用集成BIRT report engine来预览报表

d)        Web application that embeds the engine：一个类似于BIRT report viewer的Web程序，可以产生基于web的报表。

l         Report engine的核心engine运行并实施报表，而将其他的环境相关的任务留给运行该引擎的应用程序，比如：URL construction, image storage, and design file caching

l         BIRT report engine的API可以做以下几件事情：

a)         发现一组为报表定义的参数

b)        获得参数的默认值

c)        运行报表产生HTML或PDF格式的输出

d)        为报表产生图片或chart