I got exception when I tried to insert a section into a document where the section is cloned from another document. The exception is ‘The newChild was created from a different document than the one that created this node’.
The documentation said 'You can create a copy of a section using Clone. The copy can be inserted into the same or different document.'
Please check the code below and let me know what I have done wrong? Thanks var document = new Document();
int i = 0;
while (i < _mergedDocument.Sections.Count)
var section = _mergedDocument.Sections[i].Clone();