Category / Section
Is it possible to insert table in BookMark Content?
1 min read
Yes, it is possible to insert table in the Bookmark Content. By using the Insert table method of Bookmark content object. Please refer the below code snippet to do so:
C#
//MoveTo Bookmark Essential Studio
bk.MoveToBookmark("Essential Studio");
//Create Table
IWTable table = new WTable(document);
//Set row and columns
table.ResetCells(4, 4);
//Insert table in the Bookmarkcontent
bk.InsertTable(k);
VB
''MoveTo Bookmark Essential Studio
bk.MoveToBookmark("Essential Studio")
''Create Table
Dim table As IWTable = New WTable(document)
''Set row and columns
table.ResetCells(4, 4)
''Insert table in the Bookmarkcontent
bk.InsertTable(k)