Table and text inside a bookmark

Hi,
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

Thanks
Julien



1 Reply

RM Ramkumar M Syncfusion Team April 5, 2012 11:52 AM UTC

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 10.1.0.44). To overcome this issue could you please upgrade to Version 10.1.0.44 from the below link

http://www.syncfusion.com/support/forums/general/102428/Essential-Studio-2012-Volume-1-Final-Release-v101044-available-for-download

Please let us know if you have any other questions.

Regards,
Ramkumar



Loader.
Up arrow icon