I have a form where the user selects what documents they want to print. I have the program printing just fine using this code:
[code=vbnet]
Dim p As New System.Diagnost ics.ProcessStar tInfo()
p.Verb = "print"
p.WindowStyle = ProcessWindowSt yle.Hidden
p.FileName = "C:\filename.pd f"
p.UseShellExecu te = True
System.Diagnost ics.Process.Sta rt(p)
[/code]
but when I try to print PDF files, Adobe Acrobat Reader starts, which I dont want to happen. Is it possible to not have the external program start when the user hits print?
[code=vbnet]
Dim p As New System.Diagnost ics.ProcessStar tInfo()
p.Verb = "print"
p.WindowStyle = ProcessWindowSt yle.Hidden
p.FileName = "C:\filename.pd f"
p.UseShellExecu te = True
System.Diagnost ics.Process.Sta rt(p)
[/code]
but when I try to print PDF files, Adobe Acrobat Reader starts, which I dont want to happen. Is it possible to not have the external program start when the user hits print?
Comment