Printing PDF Programatically knowing when acrobat is finished
Posted on 2011-03-10
I am using the following code which I got on EE. I have aloop reading through a textbox that has the full path and name of the file ie:
I read each file and first print out a banner sheet with the information on the file. I then need to print the file and I am using the following code:
Dim p As New System.Diagnostics.ProcessStartInfo()
p.Verb = "print"
p.WindowStyle = ProcessWindowStyle.Normal
p.FileName = filestring
p.UseShellExecute = True
Whats happening is because the banner sheets are quick and the acrobat files take a while it is not going in order. I need to somehow monitor the acrobat file and then send the next file after it is complete.
Your help is appreciated.