I've had success stripping OLE wrappers from several different types of documents stored as blobs. In some cases I've removed members of compound files (e.g., doc), in some I've exported a member of a compound file (e.g., docx), and in others I've used OLE Automation (activate offsite!) to open the blob in the application and used olectrl.object.saveas to save off an unwrapped version of the file (e.g., xls, xlsx). Now I am tackling wpd (WordPerfect) files and no such luck on some of the files added with older versions of WordPerfect.
I can open the blob in WP using activate offsite but I can't figure out how to perform a saveas. I've used FileSave(<filename>) but it can't find that function. Given that I can't figure out how to strip the file, this seems like the way to go, although it is much slower than exporting or deleting members.
I don't believe that 'connecttoobject' will work for me because I don't think it can open the blob as it is.
I'm seeing information about CorelScript. Might that be an option?
If anyone has any experience with this and can shed some light that would be awesome.
Thanks, Harvey Kravis
Principal Software Engineer