.........and that will not work because there is no way to recover the runs from the paragraphs or from the document for that matter. So, without digging deeply into the structure of the docx file via the various beans or patching the API so that you can perfrom search and replace operations, I think you have two options.
Assuming that it was possible to perform these operations using an earlier version of the API, then it may be best to revert to using that version for now. Secondly, and far, far more risky, would be to use Java code to simply unzip the docx file, to open document.xml, search for and replace the specific items of text, resave the file and, finally, re-zip it. This does pose a number of risks however and it is certainly not something I would consider lightly but I do know that it is possible because I played around with a docx file today in exactly that manner. Yours Mark B Rafael Paiva wrote: > > I assume it's not available. Any plans for having this back on 3.6? Any > undocumented workaround for 3.5? > > > > Thanks! > > > > Rafael. > > > -- View this message in context: http://old.nabble.com/Text-Substitution-for-Word-2007-in-POI-3.5-tp26624595p26635931.html Sent from the POI - Dev mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
