G
Guest
The following code prints a .DOC file to the default printer without
prompting for a printer. I would like to do the same for an HTML file.
Unfortunately when I insert an HTM file in this code, I always get a prompt.
Is there a solution for HTM files?
myProcess.StartInfo.FileName = "D:\Temp\This is a test.doc"
myProcess.StartInfo.Verb = "PrintTo"
myProcess.StartInfo.CreateNoWindow = True
myProcess.StartInfo.UseShellExecute = True
myProcess.Start()
If myProcess.Responding Then
myProcess.CloseMainWindow()
Else
myProcess.Kill()
End If
prompting for a printer. I would like to do the same for an HTML file.
Unfortunately when I insert an HTM file in this code, I always get a prompt.
Is there a solution for HTM files?
myProcess.StartInfo.FileName = "D:\Temp\This is a test.doc"
myProcess.StartInfo.Verb = "PrintTo"
myProcess.StartInfo.CreateNoWindow = True
myProcess.StartInfo.UseShellExecute = True
myProcess.Start()
If myProcess.Responding Then
myProcess.CloseMainWindow()
Else
myProcess.Kill()
End If