Hi
Our application prints several word-documents automatically when requested by the user. Each of these documents can have a different PaperSource, a different Number of Copies and a different value for Duplex. Each of these documents are created from different word-templates and different formattings. The printer is the same for all documents.
var _name = "Deskjet 740c";
foreach (var document in documents)
{
var AsposeWordDocument = new Aspose.Words.Document(document.FullFilePath);
using (var printDocument = new WordPrintDocument(AsposeWordDocument, document.PrinterPaperSource))
{
printDocument.DocumentName = document.DocumentName;
printDocument.PrinterSettings.PrinterName = _name;
printDocument.PrinterSettings.Copies = document.NrCopies;
printDocument.PrinterSettings.Duplex = document.IsDuplex ? Duplex.Horizontal : Duplex.Simplex;
printDocument.Print();
}
}
The code above generates a print job for each document (each document appears separately in the printer queue).
How can I print all the documents in one job without using XPS?
Cheers
Jorg
P.S: The aim is that the documents of a single user are not mixed up with the documents from other users.