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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Insert BookmarkEnd into Section.ChildEntities

Thread ID:





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

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 01:10 PM UTC

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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon 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.Close Icon