June 5th, 2009, 07:07 AM
Can't we insert ActiveX control, if it is in Executable
I have my ActiveX control in Executable.This Executable is an ATL COM exe and contained ActiveX is and ATL control.
My application is trying to inserting this activeX control in MS Office Applications(Word,Excel, PowerPoint) with Word::InlineShape::AddOleObject in word and powerpoint,Excel::_OLEObject::Add() in Excel. But it is failing to at these functions and throwing Unknown Error 0x800A03EC.
I have tried to insert the sample ActiveX control which is in a DLL and executed with the above same code it had inserted very well. It seems like, if ActiveX control is in Exe, we cant insert as an object in MS Office applications. Can you please post your solutions?
Thanks & Regards,
Click Here to Expand Forum to Full Width
This a Codeguru.com survey!