Create CommandButton in Aspose

Hello,


can I create CommandButtons in a word document via Aspose Words? If not is there any other way to achieve this in a Java/Linux Environment?

Regards,

Werther

Hi Werther,


Thanks for your inquiry. Could you please attach your expected Word document containing the CommandButtons here for our reference. You can create this expected document using Microsoft Word. We will then provide you code to achieve the same using Aspose.Words.

Best regards,

Hello Awais,

thanks for the short time in response. The code that I do in VBA to create the commandbutton is this:

Dim moverup As Variant
Set moverup = Doucment.Range.InlineShapes.AddOLEControl(“Forms.CommandButton.1”)
moverup.OLEFormat.Object.AutoSize = False
moverup.OLEFormat.Object.Caption = "ClickMe"
moverup.OLEFormat.Object.Width = 70
moverup.OLEFormat.Object.Height = 20.25
moverup.OLEFormat.Object.Name = "TesteButton"

Best Rergards,

Werther

Hi Werther,


Thanks for the additional information. But, could you please also attach resultant Word document here for our reference.

Best regards,