I found this forum post: https://forum.aspose.com/t/123252
I'm trying to assign an Aspose.Words.Section variable to the variable "section" in this loop once my conditional logic has been satisifed (only interested in a section that has a whole set of bookmarks):
foreach(Section section in doc.Sections)The reason I'm doing this is because I'm trying to avoid having to call the method:
insertedSection = (Section)dstDoc.ImportNode(section, true, ImportFormatMode.KeepSourceFormatting);
as little as possible because of slow performance. When I try to reinsert the same section from the source document into the destination document (just different bookmark results) with this code,
I get the error, "The newChild was created from a different document than the one that created this node."
Is there a workaround for this?
This message was posted using Aspose.Live 2 Forum