Quantcast
Channel: Visual Studio General Questions forum
Viewing all articles
Browse latest Browse all 21115

How to disable com AddIns in Excel by c++/mfc programming?

$
0
0

Some third-party Excel com AddIns sometimes block my function: workbook.SaveAs(....), i.e.InvokeHelper(0x785).

When I disable Excel com AddIns  from UI (sometimes requies me to run as administrator), SaveAs works well.

So I am thinking whether it is possible for me to disable/enable third-party COM addIns programmatically or CreateDispatch("Excel.Application") in safe mode (just like pressing key ctrl when starting excel).

Thanks.


Viewing all articles
Browse latest Browse all 21115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>