Question Printing Multiple PDF Files In Order

lfields20

Member
Joined
Sep 12, 2009
Messages
13
Programming Experience
1-3
Hello,

I'm trying print multiple PDF files using the following code:

VB.NET:
 Dim startInfo As New ProcessStartInfo
 startInfo.FileName = fileToPrint
 startInfo.Verb = "print"
 startInfo.Arguments = ""
 startInfo.UseShellExecute = True
 startInfo.CreateNoWindow = False
 Dim report As Process = New Process
 report.StartInfo = startInfo
 report.Start()

All files print just fine, but the queue to the printer is not in the correct order.

I think I need a way to wait until the queue has been loaded, but not sure how to accomplish this.

Any ideas?
 
Back
Top