Aspose Words not acccessing the form controls inside word

I have a word document (.doc) in which there are form controls. FormFieldCollection fFieldColl = doc.Range.FormFields; count is returning 0. It is not recognizing the controls.

Hi
Thanks for your inquiry. Could you please attach your document here for testing? We will check the issue and provide you more information.
Best regards,

I reviewed your documentation and tried to change my code to use Shape objects because my document is using ActiveX Controls and not Form Fields.
The below loop is looping through and giving messagebox for each of the ActiveX Controls, but there seems to be no way by which I can access the tet typed by the user inside those textboxes.
Your earliest response would be appreciated.

// MessageBox.Show(Doc.Fields[0].ToString());
Aspose.Words.Document doc = new Document(@"D:\Karthick\downloads\ASPOSE Word\TestFileWithActiveX.docx");
Aspose.Words.License lic = new Aspose.Words.License();
NodeCollection shapes = doc.GetChildNodes(NodeType.Shape, true);
foreach(Shape shape in shapes)
{
    // shape.FillColor = Color.Blue;
    // Shape sh = shape;
    // System.Windows.Forms.TextBox txt2 = (System.Windows.Forms.TextBox)txt1;
    MessageBox.Show(shape.ScreenTip.ToString());
    MessageBox.Show(shape.NodeType.ToString() + ":" + shape.Name + ":" + shape.TextBox.ToString());
    MessageBox.Show(shape.HasChildNodes.ToString()); //returning false
}

Hello

Thank you for additional information. Unfortunately, currently, there is no way to access or create ActiveX controls using Aspose.Words. I linked your request to the appropriate issue, you will be notified as soon as this feature is supported.

Best regards,

The issues you have found earlier (filed as WORDSNET-1877) have been fixed in this .NET update and this Java update.

This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(18)