随笔 - 59, 文章 - 4, 评论 - 184, 引用 - 7
数据加载中……

[BIRT]-创建一个report engine

l         每个应用只需创建一个ReportEngine的实例

l         ReportEngine的构造函数要传入一个EngineConfig作为参数,如果参数为null,则一个默认值的ReportEngine被创建。

l         退出时,应用应该调用destroy()来卸载外挂以及删除临时文件

l         使用report engine有以下几个主要步骤:

a)         创建一个EngineConfig来设置report engine的选项

b)        创建一个ReportEngine类的实例

c)        你可以用这个对象去进行多种任务

d)        使用ReportEngine的一个openReport( )方法来打开一个report design文件

e)         使用IgetParameterDefinitionTask来获得report参数的信息

f)         使用IrunAndRenderReportTask运行并转换一个report到一个输出格式

g)        调用你的report enginedestroy( )方法

l         EngineConfigThe EngineConfig class wraps configuration settings for a report engine. It allows a developer to specify where to look for engine plug-ins and data drivers, and to add an application-wide scriptable object.

l         IReportRunnable:为了使用report engine,你必须首先调用openDesign( )方法来打开report设计文件,这些方法返回一个IreportRunnable实例来代表report设计文件的engine’s view。使用IreportRunnable做以下任务:

a)         Get parameter data

b)        Get report title

c)        Get report author.

d)        Get images embedded within the report design

e)         Run the report

l         IEngineTask:该类提供一个管理脚本上下文以及report locales的框架,它从ReportEngine的工厂方法中创建,需要参数:IreportRunnable对象、a scripting context, and a locale

posted on 2005-08-22 23:19 fisher 阅读(921) 评论(0)  编辑  收藏 所属分类: Programing


只有注册用户登录后才能发表评论。


网站导航: