Hi,
I am using the aspose.word which version is 14.12.0.0. I want to add a button into the word document. Do your product support this requirement? Or how can i add a node which looks like a “button”?
BTW, can we add a ActiveX control using aspose,word?
@velaskec,
Thanks for your inquiry. The CommandButton in MS Word are ActiveX controls. Unfortunately, there is no way to insert ActiveX controls into MS Word documents using Aspose.Words. However, we have logged this feature request as WORDSNET-16356 in our issue tracking system. You will be notified via this forum thread once this feature is available.
We apologize for your inconvenience.
Do you have any workaround to add a node which looks like a “Button”?
@velaskec,
Thanks for your inquiry. Unfortunately, there is no workaround to insert ActiveX into document. Could you please share complete detail of your use case? We will then provide you possible solution on it.
Here are detail:
- There is a html page which contain a “Button”.
- We need to convert this html page to word document.
- What we wanted is that there is a “Button” in the word document as the same with html page.
As your said, aspose word can’t insert a ActiveX button into word document. Do you any workaround to fake a “Button” which just looks like a common html “Button” in word document.
@velaskec,
Thanks for sharing the detail. In your case, we suggest you please replace the button tag with img tag that have the image of button. Hope this helps you.
You can also insert the image into document using DocumentBuilder.InsertImage at your desired location.
The issues you have found earlier (filed as WORDSNET-16356) have been fixed in this Aspose.Words for .NET 24.10 update also available on NuGet.