When opening a .docx in Office 365 the title bar displays "[Compatibility Mode]". Is there a way to get rid of this ?
Say the code is:
- Code: Select all
WordprocessingMLPackage wordPackage = WordprocessingMLPackage.createPackage();
MainDocumentPart mainDocumentPart = wordPackage.getMainDocumentPart();
mainDocumentPart.addStyledParagraphOfText("Title", "Hello World!");
mainDocumentPart.addParagraphOfText("Test");
File exportFile = new File("hello.docx");
wordPackage.save(exportFile);
I am using Docx4j 6.1.1.
I appreciate your help !
Thanks