How to obtain DWG file from OLE object?

  • Thread starter Thread starter sahmad
  • Start date Start date
S

sahmad

Hello All,

I am writing a console based application using C# in which I want to
implement a feature which could extract OLE objects from Word documents
and then save it in DWG file format. The OLE objects exist in Word
documents are in the form of AutoCAD Drawing i.e. once I double clicked
the Object; the system opens it in AutoCAD 2000.

Currently I have accessed the OLE object through "Word.InlineShape"
object by using Word Interop API but couldn't find any way to save it
in AutoCAD supported DWG file format. Does any one have any idea how
can I obtain a DWG file through the OLE object?

Although I have extracted the OLE object in a BMP file by using
"Selection.EnhMetaFileBits" property but the requirement is to be
saved in DWG file format. I'll be grateful if any one could help.

Thanks in advance!
-Shehzad
 
Back
Top