Page 1 of 1

addParagraphOfText setSpace

PostPosted: Thu Aug 16, 2012 5:24 pm
by roncsak
Hi there!
Is there any way to change any property of a paragraph after I added to the MainDocumentPart ?

Code: Select all
WordprocessingMLPackage wordMLPackage = WordprocessingMLPackage.createPackage();
MainDocumentPart mdp = wordMLPackage.getMainDocumentPart();
mdp.addStyledParagraphOfText("NormalIndent", "The following PHP error occurs: "); // here i want preserve the whitespace with setSpace("preserve"), but how?


Thanks,
roncsak

Re: addParagraphOfText setSpace

PostPosted: Thu Aug 16, 2012 10:03 pm
by jason
See the answer at http://stackoverflow.com/questions/1198 ... -in-docx4j

In future, please don't cross post.