1. Herfried K. Wagner’s VB.Any
  2. .NET
  3. Frequently Asked Questions

Printing files of various types without user interaction

Printing files of various types without user interaction
<URL:https://dotnet.currifex.org/dotnet/faqs/printinganyfile/en/>
----------------------------------------------------------------------------

Printing files of various types without user interaction

Printing any file without user interaction:

\\\
Imports System.Diagnostics
.
.
.
Dim psi As New ProcessStartInfo()
With psi
    .Verb = "print"
    .WindowStyle = ProcessWindowStyle.Hidden
    .FileName = "C:\filename.pdf"
    .UseShellExecute = True
End With
Process.Start(psi)
///