We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Drop down list in doc file


In the attached file there is a drop down list, as it can be seen from the screenshot, but I am unable to collect it, together with its items, from the document with your API. I checked the document’s structure and the list is not there. Can you please check this out?

Hi Zeljko,

Thanks for your inquiry. Your document contains the FormField. You can get it using following code example. Please check the attached DOM image for detail. FormField class represents a single form field. Microsoft Word provides the following form fields: checkbox, text input and dropdown (combobox).

We suggest you please use latest version of Aspose.Words for Java 16.3.0.

Document doc = new Document(MyDir + "file.doc");

FormField formfield = doc.getRange().getFormFields().get(0);