We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Append Word Document


I m working on generating Word doc using mail merge

Need to insert doc one after one, which is working fine.

but it is appending doc at the end of previous doc

i want to append a completely new doc.

Here is the code

outputDoc.AppendDocument(this.buildDoc, Aspose.ImportFormatMode.UseDestinationStyles);

when i use following piece of code

source.FirstSection.PageSetup.SectionStart = Aspose.SectionStart.NewPage;

It append completely new doc but also insert a BLANK doc in-between each document.

please suggest…


Above issue has been fixed using

sDoc.FirstSection.PageSetup.SectionStart = Aspose.SectionStart.NewPage;

before appending Doc, need to set SectionStart.NewPage


Hi Anil,

It’s great you were able to find what you were looking for. Please let us know any time you have any further queries.

Best regards,