Deleting Text
This topic contains 0 replies, has 1 voice, and was last updated by coderspy 7 years, 5 months ago.
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
You must be logged in to reply to this topic.
Home › Forums › Open-Xml-PowerTools › Deleting Text
This topic contains 0 replies, has 1 voice, and was last updated by coderspy 7 years, 5 months ago.
I was using an older version of your code that used a different algorithm to replace text in a Word document, but it wasn’t compatible with the .Net 4.7, so I updated to your new TextReplacer library. The problem I’ve encountered is that if I tell it to replace text with an empty string, it causes an error (index out of range). The old library handled replacing with an empty string, but the new one would only work by passing a single space instead of an empty string, which isn’t always desirable in some of my documents. Is there a way to delete the searched for text instead of replacing it with a space in the new library?
Thanks for your hard work with this library!
You must be logged in to reply to this topic.