When I do something like
private void printParallelFromMemeory(List<byte[]> listPDFdocs1, string printer)
{
Parallel.ForEach(listPDFdocs1, (pdfBytes) =>
{
InputPdf pdf = new InputPdf(pdfBytes);
PrintJob printJob = new PrintJob(printer, pdf);
printJob.Print();
pdf.Dispose();
});
}
The printed documents do not print properly, sometimes pages are missing and other times pages are blank.
How to I print simultaneously to the same printer from different threads?