(Short version at the end)
The software I'm currently developing is required to track an arbitrary number of MS Office files, and now needs to provide the functionality to print all of those files together, along with some application data (likely to be sent to the printer as a file of type .xps, .html, or .txt). Printing each file one by one is fairly trivial, but results in separate print jobs for each of them. This is very bad in the case of printers set up in an office to print a sheet at the beginning of each print job with the username and time of the print job, and it could allow other users sharing the printer to print between the jobs. Additionally, would there be the possibility that the jobs are not processed in the proper order?1
Is there any way to combine an arbitrary collection of Office documents as a single print job?
EDIT: An alternative solution that would be acceptable is a way to combine all of the documents to a single pdf/xps (or similar) document? This would both accomplish the primary goal, and enable quicker printing of future copies, as we could print that one large document instead of each individual document (until, of course, a new document is added).
1(Edited in after original post)
Short Version
Given:
- Arbitrary collection of MS Office files (.doc[x], .xls[x], .ppt[x])
- Application data (string is generated, can be printed to .txt, .html, etc)
Acheive:
- Print all files as a single print job, either by combining to one job, or combining to one file before print.
Question:
Can it be done? If so, how?