Printing a Word Document using a Process
Posted on 2009-02-20
I have an application that will create a word document in a Rich Text Box, save it away and then I want it to print it to the default printer. I am currently using this:
Dim p As New System.Diagnostics.ProcessStartInfo()
p.Verb = "print"
p.WindowStyle = ProcessWindowStyle.Hidden
p.FileName = "C:\Test.doc"
p.UseShellExecute = True
but it shows a window of Word briefly... Is there a way of hiding this, I would have thought the "p.WindowStyle = ProcessWindowStyle.Hidden" should have done this??