Webbrowser control

M

Meels Lilbok

Hi

Im usin a WebBrowser control on my C#/WinForm application.

There are 2 options for user, 1) Print output to PDFPrinter or 2) Print
output to default system printer.

In code i change default printer and then call theWebBrowser.Print() method.
All works fine but...
browsercontrol "remebers" only first printer change.
for example when user firs prints to pdf printer ant then to physical
printer, browsercontrol default printer remains PDFPrinter.

How to "refreh" browsercontrol to change default printer to system default
printer?


BR;
Meelis
 
M

Meels Lilbok

Ok, found a solution.

After every printing i call theBrowser.Dispose()
and recreate webbrowser object.

BR;
Meelis
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top