Hi Charulatha,
Thank you for your interest in
Syncfusion products.
The entity “BookMarkEnd” is the
child entity of paragraph. So we can’t insert that as a section’s child entity.
You can insert this into the paragraph child entities collection. Kindly use
the below code to achieve this.
WordDocument document = new WordDocument();
//Adding
one section and one paragraph to the word document
document.EnsureMinimal();
//Instantiating
the BookmarEnd instance
Syncfusion.DocIO.DLS.BookmarkEnd end = new Syncfusion.DocIO.DLS.BookmarkEnd(document,"BM") ;
//Insert
that into the paragraph child entities collection.
document.LastParagraph.ChildEntities.Insert(index,
end);
Kindly refer the below UG
documentation link to know more about bookmarks:
http://help.syncfusion.com/ug/windows%20forms/default.htm#!documents/bookmark.htm
Please let us know if you have any
other questions.
Regards,
Sathish