Update/modify 'Word Template' ActiveX Radio Control

Hi,

I am using Aspose.words for java v16.1.0.

Working with ActiveX Radio Control,
I don’t see the option for update/modify ActiveX Radio Control.

I need to update/modify ‘Word Template’ ActiveX radio control,
programmatic access to update/modify ActiveX control.

Is there any way to update/modify ActiveX Radio Control ?
Please suggest.

Thanks
Naseer

Hi Naseer,

Thanks for your inquiry. Could you please attach your sample Word document here for testing? We will investigate the issue on our end and provide you more information.

Best regards,

I have a Template Doc with ActiveX Radio Control (TestWord Template.docx).
The below sample show the way i am access this activeX control to read the selected value.

using Forms2OleControl object method, i could able to read the activeX control (Radio control) value.

NodeCollection shapes = doc.getChildNodes(NodeType.SHAPE, true);
for (Shape shape: (Iterable) shapes)
{
    if (shape.getNodeType() == NodeType.SHAPE)
    {
        OleFormat oleFormat = ((Shape) shape).getOleFormat();
        if (oleFormat != null)
        {
            OleControl oleControl = null;
            try
            {
                oleControl = oleFormat.getOleControl();
            }
            catch (Exception e)
            {
                e.printStackTrace();
            }
            // Check control type is Forms 2.0 OLE control.
            if (oleControl.isForms2OleControl())
            {
                Forms2OleControl radio = (Forms2OleControl) oleControl;
                if (isRead)
                {
                    if (Integer.parseInt(radio.getValue()) == 1)
                    {
                        rControlCaptionList.add(radio.getName().split("_")[0]);
                        rControlValueList.add(radio.getCaption());
                    }
                }
                else
                {
                    // update activeX radio control
                    // don't find any set method need help
                    // radio.setSelected() Suggestion to update method for activeX control
                }
            }
        }
    }
}

But to update / populate 'selectValue back into activeX control(Radio control) Forms2OleControl object, don’t find any setSelected() method.

Is there any way to update/modify ActiveX Radio Control ?
Please suggest.

Thanks
Naseer

Hi Naseer,

Thanks for your inquiry. We have logged your requirement in our issue tracking system. The ID of this issue is WORDSNET-13551. Our product team will further look into the details of this problem and we will keep you updated on the status of this issue. We apologize for your inconvenience.

Best regards,

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

The issues you have found earlier (filed as WORDSNET-13551) have been fixed in this Aspose.Words for .NET 24.7 update also available on NuGet.