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!>
Thanks for joining our community and helping improve Syncfusion products!
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).
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");