Print a chosen PDF file directly to printer.
Budget: $10 – $30 USD
I need .net VB code (visual studio 2019 - .Net Framework 2.0) that will print a chosen pdf file to a printer directly.
I have this code:-
Dim p As New System.Diagnostics.ProcessStartInfo()
p.Verb = "print"
p.WindowStyle = ProcessWindowStyle.Hidden
p.FileName = "C:\534679.pdf" 'This is the file name
p.UseShellExecute = True
System.Diagnostics.Process.Start(p)
This code does not work if you do not have Acrobat Reader installed.
I need a solution that works. . .
I have this code:-
Dim p As New System.Diagnostics.ProcessStartInfo()
p.Verb = "print"
p.WindowStyle = ProcessWindowStyle.Hidden
p.FileName = "C:\534679.pdf" 'This is the file name
p.UseShellExecute = True
System.Diagnostics.Process.Start(p)
This code does not work if you do not have Acrobat Reader installed.
I need a solution that works. . .
Related categories:
VB.NET