vb.netwinformsprintingprintqueue

How to print reports in submitted order using .NET


Our VB WinForms application prints a series reports using the standard PrintDocument object, some with multiple pages. My client has pointed out the the hard copy reports are not printed in the correct order. When I debug the code, I can verify the reports are generated in the correct order, but when I inspect the print queue the reports are not displayed in the order they were submitted. When I sort the queue by Submitted (date-time), the correct order of reports is shown.

Is there a way to set the print queue from VB.NET so that multiple reports are queued and printed in date-time order? Or am I fishing in the wrong hole?

TIA


Solution

  • Turn off print spooling on the printer, so the application prints directly to the printer. This is on the advanced tab of the printer properties.

    enter image description here