开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜