2011/06/02

エクセル出力について (Export in Excel format)

BI Publisher に限らず、帳票ツールにとってエクセル出力は鬼門と言えます。

結論から言えば、BI Publisher のエクセル形式での出力にはそれほど期待しないほうがよいでしょう。BI Publisherが「エクセル形式」として出力しているのは実際にはMHTMLであり、表現力は非常に限られたものになります。「オンラインで、簡易的にエクセル形式で出力する」程度の使用が限度であり、複雑な帳票の出力には到底耐えられません。

また、BI Publisherに限らず、バッチ処理であればエクセル形式での出力要件に対しては帳票ツールや開発言語の統一にとらわれず、「エクセルで実装する」ことについての検討を行うことをお勧めします。エクセルはそもそも単体で帳票ツールとしてのプラットフォームであり、外部のツールや言語から敢えて(機能制限があるにもかかわらず)操作する意義は薄いと言えます。
帳票ツールの導入や開発言語の統一は、プロジェクト全体の開発効率や保守性の向上が本来の目的であり、ツールや言語の統一を行うことは手段に過ぎません。この点については開発チームに話を降ろす前の段階で、管理者レベルで方針を出すことが重要です。

【2011-10-18追記】
BI Publisher 11.1.1.5 から、エクセル2007形式での出力が実装されました。この機能についての検証は別途行いたいと思います。
http://blogs.oracle.com/xmlpublisher/entry/bi_publisher_11g_11_1

また、エクセルの出力については、C#からエクセルファイルを出力するサンプル、および性能検証を以下の記事で説明しています。併せて参照ください。
http://blog-koichiro.blogspot.com/search/label/Excel


[Summary]
If you got the requirement with complicated Excel report, it is better NOT to implement it with BI Publisher.  It is not native Excel format file that BI Publisher outputs, but it is MHTML.  You may face many difficulties and regulations soon.
(*)If it is online and the report format is simple enough, then I may consider to use BI Publisher.


For the heavy requirements, I suggest to consider to develop with Excel (VBA), if it's batch report.  Excel is completed report platform.


[October, 18, 2011: append]
The latest release of BI Publisher (11.1.1.5) allows sending BI Publisher reports directly into native Excel 2007 format file.

http://blogs.oracle.com/xmlpublisher/entry/bi_publisher_11g_11_1


Following posts explains how to generate the Excel files via C#.  The result of performance test is also available.
http://blog-koichiro.blogspot.com/search/label/Excel

0 件のコメント:

コメントを投稿