Here is an alternative idea to create a single document with multiple unrelated invoices in it - pretty much as you would get with the Word mail merge. It involves two Word-type templates in Aware IM. The first, say called Invoice, would include all the tags relevant to the Invoice object, for example:
Invoice Number: <<Invoice.Number>>
Customer: <<Invoice.Customer.Name>>
...
The document template should end with a page break.
The other template, say called New Invoices, includes a single tag, which would retrieve all the invoices required to be printed and insert the individual invoices (generated using template Invoice) into the final document. This example assumes the invoices to be printed are those with the current date. You can change the query as required:
<<SUB_DOCUMENT('FIND Invoice WHERE Invoice.IssuedOn = CURRENT_DATE ORDER BY Invoice.Number', 'Invoice')>>
Since the document includes its own query to find the required objects, it does not need an initial context and can be started, for example, from a menu item as an operation to create document New Invoices.
The generated file will be available for download through the web browser and can be subsequently printed on any printer available to the user.
The added benefit is that the template Invoice can be re-used to print a single invoice, for example as an operation on the Invoice object form.
Note that for both templates you should select the 'data is determined at run time' option when creating them in the Configuration Tool.