send files directly to printer
-
Can anyone tell me if vb2005 has a function comparable to InvokeVerbEx("Print")? I have a folder that contains a number of .pdf files. I would like to have my code print each one of the .pdf files. If I right click on the file and click 'print', acrobat opens, prints the file, and then closes the file. Acrobat stays open, which is fine. I just want to send the files to the printer. Thanks in advance.
-
Can anyone tell me if vb2005 has a function comparable to InvokeVerbEx("Print")? I have a folder that contains a number of .pdf files. I would like to have my code print each one of the .pdf files. If I right click on the file and click 'print', acrobat opens, prints the file, and then closes the file. Acrobat stays open, which is fine. I just want to send the files to the printer. Thanks in advance.
Search for hours....no success. Post a question...find it in 10 minutes. Go figure. Here is what I found in case anyone cares. Dim p As New System.Diagnostics.ProcessStartInfo() p.Verb = "print" p.WindowStyle = ProcessWindowStyle.Hidden p.FileName = "C:\filename.htm" p.UseShellExecute = True System.Diagnostics.Process.Start(p)