One of my clients recently asked me to generate dynamic reports from content in the database, where the content contained Html entered by him through a WYSIWYG editor from a web application. I already had a library, that allowed considerable flexibility in generating dynamic Office documents. However, the functionality in the library was nowhere close to what the client wanted now.
A common situation is to prepare invoices, etc. from information in a database. Clients usually have extremely customized invoice formats, but the data to be filled in is basically the same. This article and its related code present a new (I have searched, but could not find anything related to this topic, so I believe it's new), innovative, and productive way of producing dynamic Office documents. I am using the word Office in this entire document as it does not relate solely to Microsoft Office. I have tested this approach on Open Office as well, and it works.