« PHP -> PDF | メイン | お仕事メモ2 »

たまに開発のお話

昨日は、ヴァージョンアップの日でしたね、ちょこっとだけログイン


お仕事メモ

◆Excelへの書出
Spreadsheet_WriteExcelのインストール

#OLEの準備
$pear install -f OLE
$Warning: OLE is state 'beta' which is less stable than state 'stable'
$downloading OLE-0.5.tgz ...
$Starting to download OLE-0.5.tgz (9,058 bytes)
$.....done: 9,058 bytes
$install ok: OLE 0.5

#Spreadsheet_Excel_Writerのインストール
$pear install -f Spreadsheet_Excel_Writer
$Warning: Spreadsheet_Excel_Writer is state 'beta' which is less stable than state 'stable'
$downloading Spreadsheet_Excel_Writer-0.9.0.tgz ...
$Starting to download Spreadsheet_Excel_Writer-0.9.0.tgz (55,541 bytes)
$.............done: 55,541 bytes
$install ok: Spreadsheet_Excel_Writer 0.9.0

#なぜかここに入る・・・
$/usr/local/lib/mysql/php/

#php.iniにパス追加
$vi php.ini

include_path = "/usr/local/lib/mysql/php"

Apache再起動して、設定完了


◇操作方法
参考URL → http://green0.rdap.jp/index.html

// EXCEL作成クラス読み込み
require_once( "Spreadsheet/Excel/Writer.php" );
// 新規ワークブック作成
$WorkBook = new Spreadsheet_Excel_Writer();

動的に、Excelへのワークシートの作成に便利でした。
100とかワークシートあると、かなーり便利になりました、今回は早く帰れるかも!?

About

2006年08月23日 10:22に投稿されたエントリのページです。

ひとつ前の投稿は「PHP -> PDF」です。

次の投稿は「お仕事メモ2」です。

他にも多くのエントリがあります。メインページアーカイブページも見てください。

Powered by
Movable Type