crackjack
June 10th, 2004, 04:52 AM
Hi,
We are trying to print to a specific printer using WebBroswerControl. When we recieve the first print request we sets that printer as the default printer for that user and create an instance of IE and after loading the page prints it. When the next request comes change the default printer for that user but we use the same instance of IE to print.
PROBLEM: The Problem is that after the first request the printer is not printing to the printer which we have set before the request. The IE is somehow caching the printer settings. This can seen if you have an IE open and give a print request. Just change the default printer and then try to print from the same IE. The printer displayed will still be the old default printer. But if a new IE is opened it will show the new default Printer.
Is there any way we can solve it or can have a workaround.
Is there any way we can just cleanup the IE print settings after every request.
Rgds
jack
We are trying to print to a specific printer using WebBroswerControl. When we recieve the first print request we sets that printer as the default printer for that user and create an instance of IE and after loading the page prints it. When the next request comes change the default printer for that user but we use the same instance of IE to print.
PROBLEM: The Problem is that after the first request the printer is not printing to the printer which we have set before the request. The IE is somehow caching the printer settings. This can seen if you have an IE open and give a print request. Just change the default printer and then try to print from the same IE. The printer displayed will still be the old default printer. But if a new IE is opened it will show the new default Printer.
Is there any way we can solve it or can have a workaround.
Is there any way we can just cleanup the IE print settings after every request.
Rgds
jack