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

Free Support Forum - aspose.com

Multiple Mail merged documents within a single PDF file output

Hello,

My company is considering using your Word Mail Merge product to generate formatted printouts for purchase orders (PO).

We have created the printout template in Word document and added in the various fields as placeholders of data to be mail merged from our database. The template is nested as we need to render data from both the purchase order and the purchase order items level (in a table format).

We have some queries on some of our requirements and whether we can achieve it using your product.

  1. We have a mass print functionality that we want to print out multiple POs in a single print job. We are thinking of generating all the POs as a big PDF file then user can print the PDF and all the POs within the PDF are printed in one go. Is this possible?
  2. Secondly, each PO within the PDF should have their own page number; i.e. page numbering for each PO should start from 1 and running until the PO’s last page. The next PO shall start with page number 1 again, and so on. Is this possible?

Hi

Thanks for your request.

1. Yes, you can achieve this. You can concatenate all your orders into a single document and then convert this document to PDF. Please see the following link to learn how to concatenate documents using Aspose.Words:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/join-a-document-onto-another-document.html

But you should note that producing huge document is not very good practice. You can reach OutOfMemoryException if your document is too large. I would suggest you to generate document not bigger than 100-200 pages.

2. Sure you can achieve this. Here you can learn how to control page numbering behavior upon concatenation documents:

http://www.aspose.com/documentation/.net-components/aspose.words-for-.net/controlling-how-page-numbering-is-handled.html

Best regards,