tags:

views:

16

answers:

0

In the word object model, one can you use following API to launch OLE editor while inserting an OLE object. Trick is not to pass OLE content(thru fileName) but pass just classtype of OLE.

   InlineShape AddOLEObject(ref object ClassType, ref object FileName, ref object LinkToFile, ref object DisplayAsIcon, ref object IconFileName, ref object IconIndex, ref object IconLabel, ref object Range);

Now if one uses OOXML to insert an OLE object in word range by constructing an XML fragment(as described in a few posts on this website), OLE object can be inserted, but there is no way, I could find, to launch OLE editor.

Any insights will be helpful. Thanks,