Document.AppendDocument()

Hi,


My application has performance problems when creating docx file with 30 pages or more. I find that producing the pages in small batches of 5 or so and then joining them together with AppendDocument() is much faster. My app has a mode where all output must be in a single section so my question is how can I merge the small files (each with its own section) into a combined document with a single section?

Thanks,
Bill Below
Hi Bill,

Thanks for your inquiry. In your case, we suggest you please move the cursor to the end of destination document and insert source document into it by using DocumentBuilder.InsertDocument method. Hope this helps you.

If you still face problem, please share your input and expected output documents here for our reference. We will then provide you more information about your query along with code.