How to remove content between paragraphs in docx file?
Thanks for your inquiry. In your case, we suggest you following solution. Hope this helps you.
- Please move the cursor to the start of first paragraph and insert BookmarkStart node using DocumentBuilder.StartBookmark method.
- Move the cursor to the second paragraph and insert BookmarkEnd node using DocumentBuilder.EndBookmark method.
- Once bookmark is inserted into document, please set its text to empty string using Bookmark.Text property. This will remove the content between paragraphs.