Code:
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
String[] items = {"One", "Two", "Three"};
builder.write("hello world ");
builder.insertComboBox("Drop box", items, 0);
doc.save("output.docx");
=====================================================================
Using above code of aspose java I created the document called “output.docx”.
when I open this document in “Libre Office Writer”. I can see the a functional dropdown. Attaching the image for reference.libreOffice_output_1.png (38.9 KB)
libreOfficeoutput_2.png (41.5 KB)
Now comes the problem part:
-
If I open the same document in online MS word of office 365. The drop down is not reflected.
attached image is for reference.msword_output.png (21.0 KB) -
similary I opened the same document in my Local MS word 2016 version . In that suggested word can be seen but not the drop down.
attached image is for referencemsword_local_output.png (33.6 KB)