The company I work for, SoftArtisans, has a product called OfficeWriter that allows you to do this, among other things, for Word and Excel (PowerPoint is planned to be added in the future). However, it is not free or open.
On the other hand, if you are working strictly with the 2007 format (XML-based), you can probably use OpenXML .
Tamar source
share