Hi
I have the following code for merge multiple documents
Document doc = new Document();
Document doc1 = new Document(@"C:\Documents and Settings\Desktop\Test1.docx");
Document doc2 = new Document(@"C:\Documents and Settings\Desktop\Test2.docx");
Section section=new Section(doc1);
Section newSection = (Section)doc.ImportNode(section, true, ImportFormatMode.KeepSourceFormatting);
doc.AppendChild(newSection);
Section section1 = new Section(doc2);
Section newSection1 = (Section)doc.ImportNode(section1, true, ImportFormatMode.KeepSourceFormatting);
doc.AppendChild(newSection1);
doc.Save(@"C:\Documents and Settings\Desktop\Test3.docx");
Here am trying to merge doc1 and doc2 into doc
Am facing the following issues
1. In result "doc" am getting blank page in the begining
2. The doc2 contents are not displaying in final word out put
Please tell me where are doing wrong or please tell me how to merge multiple Documents into one final word document
Regards
Ajeesh