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

          主站蜘蛛池模板: 新营市| 贵阳市| 邢台县| 葫芦岛市| 石河子市| 晋中市| 谷城县| 康马县| 临沧市| 南充市| 海门市| 石狮市| 枣强县| 托克逊县| 防城港市| 广昌县| 顺平县| 特克斯县| 江西省| 长春市| 卫辉市| 察隅县| 肥乡县| 肥东县| 宜章县| 库尔勒市| 胶南市| 南丹县| 定边县| 怀仁县| 定襄县| 庄河市| 洮南市| 法库县| 淮北市| 彩票| 湟中县| 资中县| 连江县| 阜康市| 霍州市|