I have attached the word document which has AutoOpen macro. I am using the code below in production to convert the document to PDF. During that time, I am expecting the macro to run and check box is checked.
Aspose.Words.Document doc = new Aspose.Words.Document(pdfClass.InputFile);
doc.Save(pdfClass.OutputFile, Aspose.Words.SaveFormat.Pdf);
It is not doing as per the pdf output. Please let me know how to we run the macro automatically or programatically when open the document.
Note : production machine which I am converting word to pdf does not have Microsoft office installed.
Hi
Thanks for you inquiry. There is no way to execute macros programmatically using Aspose.Words. As I can see your macro only update fields in the document, in your case, IF fields. Unfortunately, Aspose.Words doesn’t support updating of IF fields. But there are also good news for you. We are going to support updating of IF fields within a month. You will be notified as soon as this feature is supported.
Also as workaround you can use form field Check Boxes
https://docs.aspose.com/words/net/working-with-form-fields/
Best regards,
The issues you have found earlier (filed as 37) have been fixed in this update.
This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(17)
The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan