As the name implies, I have a .NET application that uses interop to open documents in Word. I have installed
app.AutomationSecurity = Microsoft.Office.Core.MsoAutomationSecurity.msoAutomationSecurityForceDisable
before opening the document. According to the documentation, this "Disables all macros in all files open programmatically, without any security warnings"
However, when I try to open one specific document, a dialog box appears on the screen that says "the object cannot be loaded because it is not available on this computer." This is a client document, but I believe that it contains a macro with links to a COM object that I did not install.
Am I doing something stupid? is there any way to actually disable macros when opening a word document?
source share