I am looking for a working example for Words 10 that will allow me to list all ActiveX checkboxes inside a document, and inspect the form field names assigned to each checkbox.
Then, I would like to see an example of how to set a given checkbox to checked or unchecked.
Are these tasks even possible? Thanks in advance for your guidance.
Hi Eric,
Thanks for your request. ActiveX checkboxes are stored in the document as embedded OLE objects. Unfortunately, at the moment Aspose.Words does not allow changing state of these objects (check and uncheck). We will consider adding this feature in future. Your request has been linked to the appropriate issue. You will be notified as soon as it is resolved.
As a workaround, you can use FormField checkboxes instead of ActiveX.
Best regards,
There seems to be a bug with Words 10 using the legacy checkbox control instead of ActiveX, and outputting to PDF. My sample program is shown. It takes 3 args: the source .doc, the destination .pdf, and destination .doc. I was expecting the 2 checkboxes to be checked. Maybe it is an issue with my fonts? I attached my input .doc file, and a sample output pdf. Output to .doc works as expected by the way.
Hi
Thank you for additional information. The problem with FormField checkboxes might occur because Wingdings2 font is not installed on the server. This font is not actually used in the document, but it is used for rendering checkboxes. So please try installing Wingdings2 font (see the attachment) on the server and let me know if this helps.
Best regards.
Thanks for being patient. It is to update you that we are planning to release a limited version of this feature in next Aspose.Words 15.12.0 - Dec 2015 version i.e. there will be Read-Only access to ActiveX data (WORDSNET-1877).
Eric:
how to set a given checkbox to checked or unchecked.
However, the above feature will still not be possible in 15.12.0. To address this problem we have logged a separate issue in our issue tracking system. The ID of this issue is WORDSNET-12826. Your thread has been linked to the appropriate issues and you will be notified via this thread as soon as the fixes of these issues are available publicly.