Printing a batch of documents (images) at once
I'm currently working on an application that is supposed to automatically print parsed images 开发者_Python百科from a batch and have the batch refill itself when the batch becomes empty as long as the program is set to do so (user-input).
I've gotten as far as to get the images printed properly one by one through user input, but I can't seem to find any decent solution to printing several images at once without the interface locking up.
The idea I thought of myself was to either prepare the printerspool with an X amount of jobs at once and then invoke the Print() method to have the printer handle it from there or to append all the images into one document and send it as a single job. Then I also need to know the status of every card in the print-batch.
What can I do to make this happen? Thanks in advance!
I suggest, you simply put your printing code in a background thread, e.g. using BackgroundWorker
.
精彩评论