I am looking for a .NET equivalent to ShellExecute. I want to print html
files using the default web browser. In the Win32 API ShellExecute will do
this for me. Does .NET have an equivalent?
Thanks,
Jon
It is Process.Start
You may want to try this:
Private Sub btnPrintDocument_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnPrintDocument.Click
Dim MyProcess As New Process
'Set the file to open
MyProcess.StartInfo.FileName = "c:\temp\test.doc"
MyProcess.StartInfo.Verb = "Print"
'Start the process
MyProcess.Start()
End Sub

Signature
HTH
?ric Moreau, MCSD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Concept S2i inc.(www.s2i.com)
> I am looking for a .NET equivalent to ShellExecute. I want to print html
> files using the default web browser. In the Win32 API ShellExecute will do
[quoted text clipped - 3 lines]
>
> Jon