Converting OLEContainer MS Office files back to native files which can be opened by Office Apps.
Posted on 2006-06-08
I have MS Office documents (DOC, XLS, MSG) which have been wrapped in an OLE Container and strored in a database blobfield.
I need to automatically read these documents onto hard disk folders - in their original native format, so that users can use the Office Apps to open them as native documents.
This is not a problem for Word Docs because I can read the blob into an OLE COntainer and use OleContainer1.SaveAsDocument() but this does not work for XLS and MSG files.
For XLS and MSG, I can open/edit the OLE COntainer and use the File-SaveCopyAs menu command - and this works - but it is manual and I need to automate the process as there are 000's of documents.
Any pointers would be gratefully received!