隨筆 - 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 閱讀(950) 評論(0)  編輯  收藏 所屬分類: Programing

          主站蜘蛛池模板: 曲靖市| 赤壁市| 永登县| 龙门县| 永川市| 蛟河市| 天峻县| 茶陵县| 东乌珠穆沁旗| 合川市| 霍林郭勒市| 晋宁县| 关岭| 瑞昌市| 荔浦县| 和静县| 北票市| 绵阳市| 台南市| 三河市| 临猗县| 庄河市| 凉山| 安多县| 沾益县| 清丰县| 海伦市| 秦皇岛市| 霍林郭勒市| 沙雅县| 靖安县| 藁城市| 建阳市| 开鲁县| 随州市| 彭州市| 河间市| 临武县| 白河县| 天台县| 保靖县|