January 18th, 2000, 10:15 PM
Greetings,
I am trying to print to multiple printers with the
webbrowser control. For example, web page #1 goes to printer A, web
page #2 goes to printer B. Note that the printer names are read from a
data file, so no user input is allowed. I am using the following code from the
Knowledge Base to print from the webbrowser:
WebBrowser1.ExecWB OLECMDID_PRINT, 2
Is there a way to specify a printer with that code? It just prints to
the Windows (not application) default printer. Since I can't specify a
printer, I am trying to change the Windows default printer before I
print each time using this code from the Knowledge Base:
WshNetwork.SetDefaultPrinter CStr(PrinterName)
The problem is, this works on my machine, but not on my client's
machine.
Is there another way to print to multiple printers from the webbrowser
control? Failing that, is there a reliable way to change the Windows
default printer in VB?
Thanks in advance for the help,
Joe
I am trying to print to multiple printers with the
webbrowser control. For example, web page #1 goes to printer A, web
page #2 goes to printer B. Note that the printer names are read from a
data file, so no user input is allowed. I am using the following code from the
Knowledge Base to print from the webbrowser:
WebBrowser1.ExecWB OLECMDID_PRINT, 2
Is there a way to specify a printer with that code? It just prints to
the Windows (not application) default printer. Since I can't specify a
printer, I am trying to change the Windows default printer before I
print each time using this code from the Knowledge Base:
WshNetwork.SetDefaultPrinter CStr(PrinterName)
The problem is, this works on my machine, but not on my client's
machine.
Is there another way to print to multiple printers from the webbrowser
control? Failing that, is there a reliable way to change the Windows
default printer in VB?
Thanks in advance for the help,
Joe