サンプルプログラム(poi-3.7-jdk1.4-example-20110508-rc2-src.zip)の使い方
・Eclipse でサンプルプロジェクトをインポートします。
・WTPサーバへプロジェクトへ追加します。(例:poi37jdk14example)
・WTPサーバを起動します。
・IE を使い、ローカル PC のサイトへアクセスします。
【Excel 97 - 2003(.xls)のテスト用ページ】 http://localhost:8080/poi37jdk14example/HSSFExample.jsp
【Excel 2007 - 2010(.xlsx)のテスト用ページ】 http://localhost:8080/poi37jdk14example/XSSFExample.jsp
・「Select an Excel file to read」で「Excelファイル」を選択すると、
Excel ファイルの内容が画面に表示されます。
(実行例)
---
You chose the file C:\text.xls Usage: Sample Demo(poi-3.8-jdk1.4-example-20120520-rc1.zip) (1) Import a sample project in Eclipse.
(2) Add it to a project to WTP server. (e.g.: poi38jdk14example)
(3) Start WTP server.
(4) Using a browser, I access the site of the local PC.
[ Test Page for Excel 97 - 2003 (.xls) ] http://localhost:8080/poi38jdk14example/HSSFExample.jsp
[ Test Page for Excel 2007 - 2010 (.xlsx) ] http://localhost:8080/poi38jdk14example/XSSFExample.jsp
(5) When I choose "Excel file" in "Select an Excel file to read",
The contents of the Excel file are displayed by a screen.
(e.g.)
---
You chose the file C:\text.xls It's contents are: Sheet 0 ROW 0 CELL col=0 VALUE=STRING value=testtest ...
---