Hi. I'm using Visual Basic 2005 and I'm trying to do what has become a pretty tough assignment... for me anyway.
I'm trying to print some pre-existing PDF files from a directory to 1 of 2 printers - HP8150 and HP9040 - IN DUPLEX MODE. THey need to be double-sided (long side).
Any ideas? It's not enough to just be able to print the PDF to the printer. I tried that (successfully) using the following code:
Dim p As New System.Diagnostics.ProcessStartInfo
p.Verb = "print"
p.WindowStyle = ProcessWindowStyle.Hidden
p.FileName = "x:\temp\20051InvF_00000.pdf"
p.UseShellExecute = True
System.Diagnostics.Process.Start(p)
I also need to control whether or not the PDF prints in Duplex mode (double-sided). I REALLY NEED SOME HELP WITH THIS. (Deadline's creeping up on me.) Thanks in advance.
(By the way, I found a c utility called 'pdfp.exe' and it's duplex setting doesn't appear to work. HELP!)
I'm trying to print some pre-existing PDF files from a directory to 1 of 2 printers - HP8150 and HP9040 - IN DUPLEX MODE. THey need to be double-sided (long side).
Any ideas? It's not enough to just be able to print the PDF to the printer. I tried that (successfully) using the following code:
Dim p As New System.Diagnostics.ProcessStartInfo
p.Verb = "print"
p.WindowStyle = ProcessWindowStyle.Hidden
p.FileName = "x:\temp\20051InvF_00000.pdf"
p.UseShellExecute = True
System.Diagnostics.Process.Start(p)
I also need to control whether or not the PDF prints in Duplex mode (double-sided). I REALLY NEED SOME HELP WITH THIS. (Deadline's creeping up on me.) Thanks in advance.
(By the way, I found a c utility called 'pdfp.exe' and it's duplex setting doesn't appear to work. HELP!)