Hi Murali,
Thank you for your patience.
On further checking the reported problem, we have found that you are inserting bookmark start and end improperly in the sample application. If you wish to insert content in bookmark range, we recommend you to set start and end first (which denotes the range) and then insert contents. Please find the below highlighted code snippet and use the same in your same application to resolve the reported issue.
|
paragraph.AppendText(" ");
paragraph.AppendBookmarkStart("tableS" + elementName);
paragraph.AppendBookmarkEnd("tableS" + elementName);
var bk = new BookmarksNavigator(document);
bk.MoveToBookmark("tableS" + elementName);
bk.InsertTable(tbl);
bk = null;
tbl = null;
|
In the given sample, table is inserted before setting valid range (start and end) for bookmark. So, in the file level it writes improperly which rises corruption problem in Word application. In other Word application version, when opening the Word document it may autocorrects the file level information to open properly in Viewer. So, we have faced problem in particular version.
Please let us know if you have any other questions.
Regards,
Hemalatha C