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.

Table and text inside a bookmark

Thread ID:





103132 Apr 4,2012 06:07 AM Apr 5,2012 07:52 AM ASP.NET Web Forms (Classic) 1
Tags: DocIO
Julien Charles
Asked On April 4, 2012 06:07 AM

I would like to insert some text and a table inside a bookmark like this :

some text
My Table <--- a custom table
some other text

The problem is the table is always placed at the end of the bookmark, even if i insert them in the right order. The result :

some text
some other text
My Table <--- a custom table

The code I use :
WordDocument document = new WordDocument();
IWTextRange wt;
document.Open("my template Word dot");
BookmarksNavigator bnSignets = new BookmarksNavigator(document);
bnSignets.MoveToBookmark("mySignet", true, true);
wt = (IWTextRange)bnSignets.InsertParagraphItem(ParagraphItemType.TextRange);
wt.Text = "some text";
bnSignets.InsertTable(myTable); //myTable has been initialized before
wt = (IWTextRange)bnSignets.InsertParagraphItem(ParagraphItemType.TextRange);
wt.Text = "some other text";

Is it possible to have the format I want ? Is it a problem of my table format ?
I use the 7.1 version of DocIO


Ramkumar M [Syncfusion]
Replied On April 5, 2012 07:52 AM

Hi Julien,

Thank you for your interest in Syncfusion products.

The mentioned issue “Mismatch in order while inserting table inside a Bookmark” is fixed in our Volume 1 release (Version To overcome this issue could you please upgrade to Version from the below link


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.