Welcome to the WinForms feedback portal. We’re happy you’re here! If you have feedback on how to improve the WinForms, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote
  • Issue while trying to find and replace a text inside a bookmark content using syncfusion DocIo dll in c#.

  • Even if we identify the exact word range and able to replace the specific word, along with replacing particular text, it is removing all bookmarks inside parent/owner paragraph.

  • And it is removing other bookmark mappings in the next paragraph of same main bookmark.

  • In the below screenshot(image1), the first and second paragraph is in a common bookmark “bk1”. In which we are trying to replace the word “FindSingleLine”(Underlined with red mark). In the 

    image2 
    screenshot the text is replaced. But another bookmark in the same paragraph got removed(“Bk3”) and  in the next paragraph we had “Bk2”, its mapping also got removed during the find and replace mechanism using syncfusion.

  • Below is the code snipet. thats how we tried to find and replce the text.

WTextRange range = paragraph.Find(searchString, true, true)?.GetAsOneRange();
if (range != null)
{
range.Text = range.Text.Replace(searchString, replacetext);
break;
}