Hii team ,
when section content append from one document to another then content control not getting in output document.
Snippet:
Aspose.Words.Document SourceDoc = new Aspose.Words.Document(@"C:\\Source.docx");
Aspose.Words.Document OutputDoc = new Aspose.Words.Document(@"C:\\Output.docx");
int[] sectionAccessListIndex = { 1, 2 };
foreach (int i in sectionAccessListIndex)
{
OutputDoc.Sections[i].RemoveAllChildren();
OutputDoc.Sections[i].AppendContent(SourceDoc.Sections[i]);
}
OutputDoc.Save(@"C:\\Output.docx");
Output.docx (2.3 MB)
Output.docx (2.3 MB)