开发者

How to send formatted HTML from a database to a specific (non-default) printer with no user interaction in VB.Net?

开发者 https://www.devze.com 2023-02-22 11:45 出处:网络
I\'m currently pulling HTML data from a database and displaying it in a WebBrowser control in my VB.Net application so that it\'s correctly rendered. The next step is to p开发者_Go百科rint it, but I n

I'm currently pulling HTML data from a database and displaying it in a WebBrowser control in my VB.Net application so that it's correctly rendered. The next step is to p开发者_Go百科rint it, but I need to be able to send it to a specific printer rather than the default printer. How can I accomplish this?


You might check this thread

Printing From WebBrowser control prints to wrong printer after setting default

Basically, remember the current default printer, set the desired printer as default, print, then restore the original default printer.

0

精彩评论

暂无评论...
验证码 换一张
取 消