提供: Bright Pattern Documentation
移動先: 案内検索
(Created page with "5.3:カスタムレポートチュートリアル/ライブラリのインポート")
 
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
= Importing Libraries=
+
= ライブラリのインポート=
After you have downloaded libraries and localization resources, the next step is to import the libraries.
+
ライブラリとローカリゼーションリソースをダウンロードしたら、次はライブラリをインポートします。
  
Note that if you have just installed Jaspersoft Studio on your computer, your workspace may not contain any folders or projects in the ''Project Explorer'' tab, and you may have to add a new folder called ''MyReports'' before you can proceed with the following steps.
+
Jaspersoft Studioをコンピューターにインストールしたばかりの場合、ワークスペースの''プロジェクトエクスプローラー''タブにフォルダーやプロジェクトが含まれていない可能性があります。その場合、次のステップへ進む前に、''マイ・レポート''という新しいフォルダーを追加しなければなりません。
  
== Procedure ==
+
== 手順 ==
=== Step 1: Add libraries to ''MyReports'' project ===  
+
=== ステップ 1: ''マイ・レポート''プロジェクトにライブラリを追加します。===  
# In Jaspersoft Studio, navigate to the ''Project'' tab in the left-hand part of the screen.<br /><br />
+
# Jaspersoft Studioで画面の左側にある''プロジェクト'' タブに移動します。<br /><br />
# Select '''MyReports'''.<br /><br />
+
# '''マイ・レポート'''を選択します。<br /><br />
# Right-click '''MyReports''' and then select '''New > Folder'''.<br /><br />[[File:Jaspersoft-MyProjects-New-Folder.png|650px|thumbnail|center|How to create a new folder]]<br /><br />
+
# '''マイ・レポート'''を右クリックし、'''新規 > フォルダー'''を選択します。<br /><br />[[File:Jaspersoft-MyProjects-New-Folder.png|650px|thumbnail|center|新しいフォルダーの作成方法]]<br /><br />
# In the dialog box that pops up, select parent folder '''MyReports''' and name the new folder ''libs''. This is the folder that will contain your libraries.<br /><br />
+
# 表示されるダイヤログボックスでは、'''マイ・レポート'''という親フォルダーを選択し、新しいフォルダーに''libs''という名前を付けます。このフォルダーにはライブラリが保存されます 。<br /><br />
# Click '''Finish'''.<br /><br />[[File:Name-New-Folder.png|650px|thumbnail|center|Project > MyReports > New > Folder]]
+
# '''終了'''をクリックします。<br /><br />[[File:Name-New-Folder.png|650px|thumbnail|center|プロジェクト > マイ・レポート > 新規 > フォルダー]]
  
=== Step 2: Import files ===
+
=== ステップ 2: ファイルをインポートします。 ===  
# Right-click the '''libs''' folder and select '''Import'''.<br /><br />[[File:Libs-Import.png|450px|thumbnail|center|libs > Import]]<br /><br />
+
# '''libs'''フォルダーを右クリックし、'''インポート'''を選択します。<br /><br />[[File:Libs-Import.png|450px|thumbnail|center|libs > インポート]]<br /><br />
# In the dialog window that pops up, select '''File System'''.<br /><br />
+
# 表示されるダイヤログウィンドウでは、'''ファイルシステム'''を選択します。<br /><br />
# Click '''Next'''.<br /><br />[[File:Libs-Import-File-System.png|450px|thumbnail|center|libs > Import > File System]]
+
# '''次へ'''をクリックします。<br /><br />[[File:Libs-Import-File-System.png|450px|thumbnail|center|libs > インポート > ファイルシステム]]
  
=== Step 3: Add files from the report template library for use in Jaspersoft Studio ===
+
===ステップ 3: Jaspersoft Studioで使用するために、レポートテンプレートライブラリからファイルを追加します。 ===  
# Click '''Browse''' to find the ''report-template-libs'' folder of the package that you previously downloaded and extracted.<br /><br />
+
#'''参照'''をクリックし、以前にダウンロード・解凍したパッケージの''report-template-libs''フォルダーを探します。<br /><br />
# Select the ''report-template-libs'' folder and click '''OK'''.<br /><br />
+
# ''report-template-libs'' フォルダーを選択し'''OK'''をクリックします。<br /><br />
# Select these files:<br /><br />
+
# 以下のファイルを選択します:<br /><br />
## '''report-formatter.jar''' (to provide scriplet functions for output formatting)<br /><br />
+
## '''report-formatter.jar''' (出力フォーマット用のスクリプトレット機能の提供)<br /><br />
## '''mariadb-java-client-1.1.6.jar''' (for database connection)<br /><br />
+
## '''mariadb-java-client-1.1.6.jar''' (データベース接続)<br /><br />
## '''icu4j-4.8.1.jar''' (for Unicode and localization support)<br /><br />
+
## '''icu4j-4.8.1.jar''' (Unicodeとローカリゼーションサポート)<br /><br />
## '''report-fonts.jar''' (for Unicode fonts)<br /><br />
+
## '''report-fonts.jar''' (Unicodeフォント)<br /><br />
# Click '''Finish'''.<br /><br />[[File:Import-File-System-Finish.png|650px|thumbnail|center|Libs > Import > File System > report-template-libs]]
+
# '''終了'''をクリックします。<br /><br />[[File:Import-File-System-Finish.png|650px|thumbnail|center|Libs > インポート > ファイルシステム > report-template-libs]]
  
=== Step 4: Build paths to the files within the project folder ===
+
=== ステップ 4: プロジェクトフォルダー内のファイルにパスを組み込みます。 ===  
# Select these .''jar'' files in the Project Explorer. You can select all four as a batch.<br /><br />
+
# これらの .''jar'' ファイルをプロジェクトエクスプローラーで選択します。4つのファイルを一度に選択できます。<br /><br />
# Right-click the selection and then select '''Build Path &gt; Add to Build Path'''. Doing so will add a path for each .''jar'' file to the root folder of the project.<br /><br />[[File:Build-Paths.png|650px|thumbnail|center|Build Path > Add to Build Path]]
+
# 選択したファイルを右クリックし、'''パスの組み込み &gt; パスの組み込みのために追加'''を選択します。そうすると、各 .''jar''ファイルにプロジェクトのルートフォルダーへのパスが追加されます。<br /><br />[[File:Build-Paths.png|650px|thumbnail|center|パスの組み込み > パスの組み込みのために追加]]
  
=== Step 5: Add remaining ''report-template-libs'' files to the project ===
+
=== ステップ 5: 残りの ''report-template-libs'' ファイルをプロジェクトに追加します。 ===  
Add the files ''report_logo_bar.png'' and ''report_logo.png'' to the root folder of the project by following step 2 and step 3 of this procedure. Instead of selecting the .''jar'' files, select the .''png'' files from the ''report-template-libs'' folder.
+
この手順のステップ2と3に従って、''report_logo_bar.png'' ''report_logo.png''ファイルをプロジェクトのルートフォルダーへ追加します。.''jar'' ファイルの代わりに .''png'' ファイルを ''report-template-libs''フォルダーから選択します。

Latest revision as of 13:47, 13 November 2019

• English
• 5.19 • 5.3 • 5.8

ライブラリのインポート

ライブラリとローカリゼーションリソースをダウンロードしたら、次はライブラリをインポートします。

Jaspersoft Studioをコンピューターにインストールしたばかりの場合、ワークスペースのプロジェクトエクスプローラータブにフォルダーやプロジェクトが含まれていない可能性があります。その場合、次のステップへ進む前に、マイ・レポートという新しいフォルダーを追加しなければなりません。

手順

ステップ 1: マイ・レポートプロジェクトにライブラリを追加します。

  1. Jaspersoft Studioで画面の左側にあるプロジェクト タブに移動します。

  2. マイ・レポートを選択します。

  3. マイ・レポートを右クリックし、新規 > フォルダーを選択します。

    新しいフォルダーの作成方法


  4. 表示されるダイヤログボックスでは、マイ・レポートという親フォルダーを選択し、新しいフォルダーにlibsという名前を付けます。このフォルダーにはライブラリが保存されます 。

  5. 終了をクリックします。

    プロジェクト > マイ・レポート > 新規 > フォルダー

ステップ 2: ファイルをインポートします。

  1. libsフォルダーを右クリックし、インポートを選択します。

    libs > インポート


  2. 表示されるダイヤログウィンドウでは、ファイルシステムを選択します。

  3. 次へをクリックします。

    libs > インポート > ファイルシステム

ステップ 3: Jaspersoft Studioで使用するために、レポートテンプレートライブラリからファイルを追加します。

  1. 参照をクリックし、以前にダウンロード・解凍したパッケージのreport-template-libsフォルダーを探します。

  2. report-template-libs フォルダーを選択しOKをクリックします。

  3. 以下のファイルを選択します:

    1. report-formatter.jar (出力フォーマット用のスクリプトレット機能の提供)

    2. mariadb-java-client-1.1.6.jar (データベース接続)

    3. icu4j-4.8.1.jar (Unicodeとローカリゼーションサポート)

    4. report-fonts.jar (Unicodeフォント)

  4. 終了をクリックします。

    Libs > インポート > ファイルシステム > report-template-libs

ステップ 4: プロジェクトフォルダー内のファイルにパスを組み込みます。

  1. これらの .jar ファイルをプロジェクトエクスプローラーで選択します。4つのファイルを一度に選択できます。

  2. 選択したファイルを右クリックし、パスの組み込み > パスの組み込みのために追加を選択します。そうすると、各 .jarファイルにプロジェクトのルートフォルダーへのパスが追加されます。

    パスの組み込み > パスの組み込みのために追加

ステップ 5: 残りの report-template-libs ファイルをプロジェクトに追加します。

この手順のステップ2と3に従って、report_logo_bar.pngreport_logo.pngファイルをプロジェクトのルートフォルダーへ追加します。.jar ファイルの代わりに .png ファイルを report-template-libsフォルダーから選択します。

< 前へ | 次へ >