Quantcast
Channel: Office 2013 and Office 365 ProPlus - Planning, Deployment, and Compatibility forum
Viewing all articles
Browse latest Browse all 3748

Create Addin Object without calling Addin.Connect = true

$
0
0

I am working on an Excel COM-Addin it can be installable for multi-users (Registry entry in HKLM) and it takes Addin.Object (Office.COMAddIn.Object) property to make some calculations. I have a logic like below 

if ((!addIn.Connect) || (addIn.Object == null)) { addIn.Connect = true; }

return addIn.Object; //This gets value only when I call addIn.Connect = true;

This works fine for Admin users but for non admin users its giving an exception since addin is in HKLM level. 

Can anyone help me to get addIn.Object the without calling addIn.Connect = true;



Viewing all articles
Browse latest Browse all 3748

Trending Articles