I am trying to convert a word report to PDF using Adobe distiller. Some of these word files have macros in them which shows a popup when the doc is opened and this stops the automation process.
We tried disabling the macros by
wordApplication.AutomationSecurity = Microsoft.Office.Core.MsoAutomationSecurity.msoAutomationSecurityForceDisable;
but now the application is not firing the Document Open
event anymore, where the conversion code is implemented. The code is written, in the event, in order to make sure the conversion happens only after word loads the file.
Is there any other way to disable macros? Or any other approach so that I can disable the macros and also make sure the file is loaded in order to start the conversion process.