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 Thu Sep 18, 2025 12:13 pm
News of docx4jwordMLPackage.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 10193 • Total topics 2868 • Total members 2098