FoxPro Programming
How to Set Printer for WebBrowser Control
Gravatar is a globally recognized avatar based on your email address. How to Set Printer for WebBrowser Control
  Simon White
  All
  Aug 29, 2022 @ 07:58am

Hi

Currently when using ExecWB with the WebBrowser control you can print the web page to the default printer or show a preview and allow the user to choose the printer. However what I need is a method to change the printer without prompting the user. Is that possible?

Thanks, Simon

Gravatar is a globally recognized avatar based on your email address. re: How to Set Printer for WebBrowser Control
  Simon White
  Simon White
  Aug 29, 2022 @ 12:23pm

I decided just to use the WinAPI SetDefaultPrinter() to set the printer and then put back the original default printer when the print job is done. This is an acceptable solution because it is a server that I control.

Simon

© 1996-2024