By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,890 Members | 1,236 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,890 IT Pros & Developers. It's quick & easy.

Shell

P: n/a
How can I shell out to print a text file to the default windows printer ?

Thanks,
Richard
Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Hello,

"Richard Grene" <rg****@s4si.com> schrieb:
How can I shell out to print a text file to the default windows
printer ?


\\\
Dim p As New System.Diagnostics.ProcessStartInfo
p.Verb = "print"
p.WindowStyle = ProcessWindowStyle.Hidden
p.FileName = "C:\Programme\Hamster\Changes_en.txt"
p.UseShellExecute = True
System.Diagnostics.Process.Start(p)
///

--
Herfried K. Wagner
MVP VB Classic, VB .NET
http://www.mvps.org/dotnet
Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.