前の記事 «:「PEARの使い方くらいは知っておきましょう」記事
次の記事 »:AjaxベースのPHPを使ったグリッドコンポーネント

PHPでOpenOfficeのドキュメントを作成する『PHP DocWriter』

2006年09月17日

スポンサード リンク
PHP Hacks - Generate OpenOffice documents with PHP
PHP DocWriter is a set of PHP classes that allows you to create documents in OpenOffice.org XML format (that is, StarOffice/OpenOffice.org documents).

PHPでOpenOfficeのドキュメントを作成する。
PHP DocWriter というクラスライブラリを使えば簡単に作ることが出来る模様。

クラスライブラリなので次のように簡単に使え、ソースも分かりやすく使えますね。

<?php
require_once('../lib/include.php');
import('phpdocwriter.pdw_document');

$sxw = new pdw_document;

$sxw->SetLanguage('en''US');
$sxw->SetStdFont('Times New Roman'10);
$sxw->Write('Hello World!');

$sxw->Output();

?>

ライブラリ配布サイト

スポンサード リンク

投稿者 KJ : 2006年09月17日 12:08 | ブックマークに追加する Subscribe with livedoor Reader
間違いの指摘をしていただける方はメールでお願いします


本を執筆しました。