Hi,
I m trying an existing table copy in a document with InsertNode but i get an exception ‘Cannot insert node of this type at this location error’ at runtime. Could you please look at the code below and tell me what I’m doing wrong?
Thanks…
private void SetSameBookmarkContents(string bookmarkName, Node node)
{
if (node == null) return;
string strBookmarkName = this.GetBookmarkName(bookmarkName);
while (strBookmarkName != bookmarkName)
{
if (this.MoveToBookmark(strBookmarkName)) this.InsertNode(node.Clone(true)); // I get exception at this line, also i tryed this.InsertNode(node) but result did no changed; .
strBookmarkName = this.GetBookmarkName(bookmarkName);
}
}