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

We arefacing an issue with syncfusion. when trying to delete a table row using a bookmark the row is deleted successfully but the bookmark contained in the above row is also removed(which is undesirable).


We tried to remove the row corresponding to bookmark bk1 and bookmark (bk1) are removed. Which is good, but our issue is bk2 is also removed(not expected).

Please see the sample code and document attached.

sample code

WordDocument document = new WordDocument(@"../../Data/testdoc.docx");


            BookmarksNavigator bookmarkNavigator = new BookmarksNavigator(document);

            bookmarkNavigator.MoveToBookmark("bk1");

            Bookmark objBookmark = bookmarkNavigator.CurrentBookmark;

            WParagraph para = objBookmark.BookmarkStart.OwnerParagraph;

            WTableCell cell = para.Owner as WTableCell;

            WTable table = cell.OwnerRow.Owner as WTable;

            table.ChildEntities.Remove(cell.OwnerRow);

            document.Save("Sample.docx", FormatType.Docx);

            document.Close();

            Process.Start("Sample.docx");