Deleting Text

Home Forums Open-Xml-PowerTools Deleting Text

This topic contains 0 replies, has 1 voice, and was last updated by  coderspy 10 months ago.

Viewing 1 post (of 1 total)
  • Author
  • #7025


    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!

    • This topic was modified 10 months ago by  coderspy. Reason: typo
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.