I’ve noticed that if I append a document that has a header/footer to one that doesn’t, the header/footer isn’t appended. Is there a work around for this? I’ve attached the files I am using for testing. Below is the code I currently have:
Document doc1 = new Document(@"C:\Projects\Test\Alabama Surplus Lines Tax Template.doc");
Document doc2 = new Document(@"C:\Projects\Test\CA 01 97 03 12.doc");
doc2.FirstSection.PageSetup.SectionStart = SectionStart.NewPage;
doc1.AppendDocument(doc2, ImportFormatMode.KeepSourceFormatting);
doc1.Save(@"Test.doc");