Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / December 2004

Tip: Looking for answers? Try searching our database.

RTF embedded objects

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
tomgold - 20 Dec 2004 23:53 GMT
Hi there,

I am trying to extract an embedded object out of an MS-Word saved RTF
document.
I have followed the documentation, and got to the \objdata tag.
The documentation advises that the data is saved using the API call
'OleSaveToStream', that is using IPersistStream interface to be saved. To my
understanding, I will need to use revert call 'OleLoadFromStream' to
reproduce the embedded object (with the same interface).
The problem is that this call always fails for this interface (and for other
interfaces that I try) - error is REGDB_E_CLASSNOTREG. This does not look
right to me... as its the same computer I'm using to have generated the
document.

Did someone run into this before? anyone who used 'OleLoadFromStream' before?
Or something else that I seem to be doing incorrect?

Thanks,
Shaz.
Word Heretic - 22 Dec 2004 23:32 GMT
G'day "tomgold" <tomgold@discussions.microsoft.com>,

No, I havent used it, I load the rtf into word and use Ole verbs on
the objects usually. However, it sounds as if that call is requiring
you to id the object type for it?

Steve Hudson - Word Heretic

steve from wordheretic.com (Email replies require payment)
Without prejudice

tomgold reckoned:

>Hi there,
>
[quoted text clipped - 15 lines]
>Thanks,
>Shaz.

Rate this thread:






 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.