* "Desi" <an*******@discussions.microsoft.com> scripsit:
Does anyone know what is the code to print a pdf using
vb. Basically I want to create an .exe that when run
will automatically print a particular pdf doument.
Depending on the application that is associated with PDF files, you can
try this:
\\\
Dim p As New System.Diagnostics.ProcessStartInfo()
p.Verb = "print"
p.WindowStyle = ProcessWindowStyle.Hidden
p.FileName = "C:\filename.pdf"
p.UseShellExecute = True
System.Diagnostics.Process.Start(p)
///
--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>