We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Insert BookmarkEnd into Section.ChildEntities

Thread ID:





117018 Jul 21,2014 12:13 AM Jul 23,2014 09:10 AM ASP.NET Web Forms (Classic) 1
Tags: DocIO
Charulatha Suryakumar
Asked On July 21, 2014 12:13 AM

Hi Vijayakumar,

Please send me the attachment, which you gave on the Thread 90238

I am also having the issue on section.childentities insert ""Cannot insert an object to SectionChildEntities collection."

Charulatha Suryakumar

Sathish K [Syncfusion]
Replied On July 23, 2014 09:10 AM

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


//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:



Please let us know if you have any other questions.





This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.