Hanya sekedar Notepad

"Hanya sekedar Notepad" adalahh catatan kecil saya sebagai programmer newbie.. sebagai bahan pengingat jika suatu hari nanti di butuhkan. dan mungkin dapat membantu orang lain.

Foto Saya
Nama:
Lokasi: Jakarta, Jakarta

Minggu, 25 Desember 2011

Running from Birt Runtime

Running from Birt Runtime - Arctorus Birt Emitters

This article will explain how to use Arctorus Birt Emitters from Birt Runtime programmatically.

Steps To Follow

  1. Download Birt Runtime. For this article, we will use Birt Runtime 2.6.2. Here is a download link

  2. Once you download it, open it using WinRaR. You can see the folder namely birt-runtime-2_6_2 as shown in this image

    birt-runtime-winrar
  3. Extract the folder. We will extract it on C:\birt but you can select any path. If you choose some different location then you have to edit the path of all libs as discussed in Step 7.

    birt-runtime-extracted
  4. Download any Arctorus Birt Emitter. For this example, we will download latest Arctorus Xlsx Emitter for Birt 2.6 and place it inside C:\birt\birt-runtime-2_6_2\ReportEngine\plugins folder as shown in this image.

    birt-runtime-plugins-folder
  5. Download the Sample Eclipse Project demonstrating the code that explains how to use Arctorus Birt Emittersprogrammatically with Birt Runtime from this link and extract its file in C:\Project

    birt-runtime-download-project-and-extract
    birt-runtime-extracted-project-files
  6. Open the Eclipse “Helios” and import this project. See the following screenshots

    birt-runtime-import-project-in-eclipse
    birt-runtime-select-existing-project-into-workspace
    birt-runtime-browse-project-location

    And click Finish. A project will be imported.

    birt-runtime-project-inside-project-explorer
  7. Now right click the Reference Libraries and Edit the path of the Arctorus Birt Emitter as shown below

    birt-runtime-configure-build-path

    Select Arctorus Birt Emitter and then click Edit

    birt-runtime-edit-arctorus-birt-emitter-path
    birt-runtime-browse-arctorus-birt-emitter

    And click OK.

    birt-runtime-imported-libraries
  8. Open the Demo.java

    birt-runtime-open-sample-demo-code
  9. Run it as a Java Application

    birt-runtime-run-sample-demo-code
    birt-runtime-output-sample-demo-code
  10. After execution, the code inside the project will convert the Input File: C:\Project\reports\ProductCatalog.rptdesign intoOutput File: C:\Project\output\ProductCatalog.xlsx as highlighted in the image

    birt-runtime-input-report-and-output-xlsx-export
  11. Open the Output File: C:\Project\output\ProductCatalog.xlsx and view.

    birt-runtime-output-folder-path
    birt-runtime-view-output-xlsx-file

0 Komentar:

Posting Komentar

Berlangganan Posting Komentar [Atom]

<< Beranda