Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_windows_forms thread: Re: Print a document


Message #1 by "Michel Grootjans" <michel.grootjans@a...> on Tue, 4 Feb 2003 09:12:15
Thanks, it works fine now. For others who are interested, here's a sample 
code.

    Public Sub PrintFile(ByVal aFileName As String)
        Dim myProcess As Process

        myProcess .StartInfo.FileName = aFileName
        myProcess .StartInfo.Verb = "Print"
        myProcess .StartInfo.UseShellExecute = True
        myProcess .StartInfo.CreateNoWindow = True
        myProcess .Start()
    End Sub

  Return to Index