Hello,
I try to search an replace different Texts in a Word-Document (.doc).
For that i Use Java 5 and Aspose.Words for Java 4 Beta (saveToPdf-Function is needed afterwards)
\n has to be a new Line
For Example:
$$Name$$ -> Mr. Sherlock Holmes
$$Adress$$ -> 221b Baker Street \n London \n England
Theres no function in the DocumentBuilder like moveTo(TheStringIWantToMoveTo)
Also when i tried to use
doc.getRange().replace("$$Adress$$", “221b Baker Street \n London \n England”, false, false);
Theire were no new Lines in the Document. Instead the new Lines were displayed as Squares in the Word-Document (see test_test.doc)
Do you have an Idea and maybe a Code-Sample how i could do that?
thanks