I have tried something like this but it doesn't seem to work ...
- Code: Select all
wordMLPackage.getMainDocumentPart().addStyledParagraphOfText("Title", "Hello Word!" + "\n" + "Try This!" + "\t\t\t\t\t\taa");
It is currently Mon Nov 03, 2025 5:45 am
News of ForumswordMLPackage.getMainDocumentPart().addStyledParagraphOfText("Title", "Hello Word!" + "\n" + "Try This!" + "\t\t\t\t\t\taa"); public static void main(String[] args) throws Exception {
String inputfilepath = System.getProperty("user.dir") + "/checkbox.docx";
WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.load(new java.io.File(inputfilepath));
Total posts 10207 • Total topics 2875 • Total members 2101