C# and DisableAutoMacros

D

Dominic Godin

Hi,

I have just moved from Delphi to C#. I'm writing an application that needs
to open Word templates and alter them. These templates have auto macros
that fire when they are opened. In Delphi I could stop this by the
following:

OleVariant(MSWord.WordBasic).DisableAutoMacros;

Any idea how I can achieve the same thing in C#. I've been searching for
ages and found nothing.

Thanks

Dominic Godin
 
Top