Before upgrading to Aspose Word 19.7, we had c# code generating a Word document from mail merge, copying macros from another Word document using OpenXML
and on opening in the document in Word the “AutoOpen” macro is executed.
With the latest upgrades 20.1, we decided to make use of the VBAProject APIs and are using the Clone() methods.
The macros are copied correctly to the final document but unfortunately the AutoOpen macro does not get called on opening the document in Word. You have to run the macro manually.
I have also tried adding Document_Open event to call the AutoOpen macro but it still does not get executed.
In both cases, the final documents are saved as *.doc (Word 97-2003 Document), although I have also tried *.docm
I can supply both documents for you to compare what the differences are internally.
Are there any known issues regarding calling AutoOpen ?