extracting embedded WordPad in word document using c#

R

rameshpasa

I have a word document file (say, ABC.doc).
A wordpad document object is inserted using insert>object and in
"object dialog box" select "WordPad Document" from "create New" tab.

Now i want to extract this wordpad portion from the word document and
save it as new file say XYZ.rtf.

I have already used "Microsoft.Office.Interop.word" for reading the
word document.
The ClassType of OLEFormat in the InLineShape gives us
"WordPad.Document.1"

we were able to extract those document which has classtype as
"Word.Document.8"

Do you have any idea how to extract the wordpad document(having
classtype="WordPad.Document.1") from the word document.

Thank you,
Pasa
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top