Hi,
Hi Cutlac,
I’m using :
Hi Cutlac,
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);List list = doc.getLists().add(ListTemplate.NUMBER_DEFAULT);
Style myStyle = doc.getStyles().add(StyleType.PARAGRAPH, “myStyle”);builder.writeln(“At level 1”);
builder.writeln(“At level 2”);
builder.writeln(“At level 3”);doc.getFirstSection().getBody().getParagraphs().get(0).getParagraphFormat().setStyle(myStyle);
doc.getFirstSection().getBody().getParagraphs().get(0).getListFormat().setList(list);
doc.getFirstSection().getBody().getParagraphs().get(0).getListFormat().setListLevelNumber(0);doc.getFirstSection().getBody().getParagraphs().get(1).getListFormat().setList(list);
doc.getFirstSection().getBody().getParagraphs().get(1).getListFormat().setListLevelNumber(1);doc.getFirstSection().getBody().getParagraphs().get(2).getListFormat().setList(list);
doc.getFirstSection().getBody().getParagraphs().get(2).getListFormat().setListLevelNumber(2);list.getListLevels().get(0).setLinkedStyle(myStyle);
list.getListLevels().get(0).getLinkedStyle().getFont().setColor(Color.ORANGE);
list.getListLevels().get(0).getFont().setSize(16);
list.getListLevels().get(0).getFont().setColor(Color.GREEN);doc.save(“C:\Temp\out.docx”);
My question was about the case when you create a style with the type “List”. Something like :
Hi Cutlac,
Hi Cutlac,
Hello,
It seems this bug it still not fixed.
We got the same problem about setLinkedStyle() of ListLevel items.
We really need it to be fixed.
Do you expect to fix it soon ?
Hi Jean,
Hi awais,
Thanks for your answer.
We are waiting for the ETA of this issue.
Hi Jean,