code but it cretaes instances of worpad.exe that i only see
by task manager and i cannot terminate them. have you any ideas?
Dim pr As New System.Diagnostics.Process
pr.StartInfo.WindowStyle = Diagnostics.ProcessWindowStyle.Normal
pr.StartInfo.CreateNoWindow = False
pr.Start("C:\Programmi\Windows NT\Accessori\wordpad.exe")
"Herfried K. Wagner [MVP]" <hi***************@gmx.at> ha scritto nel
messaggio news:br************@ID-208219.news.uni-berlin.de...
* "sandro72" <gf*****@pippo.com> scripsit:hi, i need to simulate the right mouse click and choose an option.
i want to use (in .net) the option "print" that appear when i right-click on .doc file and be able to change the printer before and after the print.
can i launch word from command line forcing it to print a document?
\\\
Dim p As New System.Diagnostics.ProcessStartInfo()
p.Verb = "print"
p.WindowStyle = ProcessWindowStyle.Hidden
p.FileName = "C:\filename.doc"
p.UseShellExecute = True
System.Diagnostics.Process.Start(p)
///
--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>