Print multiple images

I need to print a large collection of image images.

If I use something like:

printDocument.PrintPage += OnPrintPage;
printDocument.Print();

The size of my print job in the printer queue is more than 1 GB!

Can anyone suggest how I can print images one at a time. Maybe some event, such as PrintJobIsFinished, is available?

+3
source share
1 answer

It looks like you can use the NumberOfJobs property in the PrintQueue class to determine if there are any jobs in the queue. You will need to poll the printer until NumberOfJobs drops to 0, and then starts the next print job.

0
source

Source: https://habr.com/ru/post/1748853/


All Articles