M
Mark Eastom
A client of mine has run into a number of Outlook messages that users
managed to save as RTF files.
When the original message contained attachments those files are embedded
within the RTF file as rtf objects with a type of "Outlook.FileAttach".
If opened manually in MS-Word the attachments can be saved to disk with
their original file names.
When attempting (via a simple Visual Basic program) to save the files to
disk using Words automation Objects the Object property of the embedded
items OLEObject property is always "Nothing" so it can't be set to an
Outlook.Attachment object for saving to disk.
I made the mistake of attempting to use the ActivateAs method on the
OLEObject in an attempt to get the embedded objects to open as various types
with no success. Plus, it appears I've mucked up the registration of
MS-Words automation objects in the process.
I can parse through the RTF stream to grab the "objdata" and "class"
portions of the stream for each embedded object, but there doesn't appear to
be much useful documentation on MSDN (or elsewhere) on attempting to turn
said data and class into anything that might be able to allow retrieval of
the originally attached files.
Has anyone else run into anything along the lines of this and have clues /
suggestions?
Also, does anyone know of an easy way to re-register the Office 2000 objects
for MS-Word (or restore their original classid associations) without
uninstalling and reinstalling the whole thing and re-applying the service
packs?
I've tried opening MS-Incidents on these issues using my MSDN "free"
incidents, however, MS-Support hasn't bothered getting back to me regarding
my questions.
managed to save as RTF files.
When the original message contained attachments those files are embedded
within the RTF file as rtf objects with a type of "Outlook.FileAttach".
If opened manually in MS-Word the attachments can be saved to disk with
their original file names.
When attempting (via a simple Visual Basic program) to save the files to
disk using Words automation Objects the Object property of the embedded
items OLEObject property is always "Nothing" so it can't be set to an
Outlook.Attachment object for saving to disk.
I made the mistake of attempting to use the ActivateAs method on the
OLEObject in an attempt to get the embedded objects to open as various types
with no success. Plus, it appears I've mucked up the registration of
MS-Words automation objects in the process.
I can parse through the RTF stream to grab the "objdata" and "class"
portions of the stream for each embedded object, but there doesn't appear to
be much useful documentation on MSDN (or elsewhere) on attempting to turn
said data and class into anything that might be able to allow retrieval of
the originally attached files.
Has anyone else run into anything along the lines of this and have clues /
suggestions?
Also, does anyone know of an easy way to re-register the Office 2000 objects
for MS-Word (or restore their original classid associations) without
uninstalling and reinstalling the whole thing and re-applying the service
packs?
I've tried opening MS-Incidents on these issues using my MSDN "free"
incidents, however, MS-Support hasn't bothered getting back to me regarding
my questions.