https://issues.apache.org/bugzilla/show_bug.cgi?id=51604
--- Comment #7 from sanmoy <san...@gmail.com> 2011-08-11 05:26:24 UTC --- Created attachment 27369 --> https://issues.apache.org/bugzilla/attachment.cgi?id=27369 test output file for hwpf I have tested with 3.8-beta4-20110810, but the defect still exists. Now, I have added a check, when the line contains the string "Header" ( please see the input doc ) then it will replace the text. if(text.contains("Header")) charRun.replaceText(text, "added"); And I have compared the output file with "beyond compare" ( a file comparison tool ), it shows the text has been replaced properly, but the document format is corrupted. I don't know much about the doc format so cannot comment. I have attached the output file, hope it will help. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org