Home > Software design >  Printing in WinForm through Web
Printing in WinForm through Web

Time:12-22

My original WinForm auto-print new order from SQL (every 60 seconds),which I translated into HTML and print it through ((WebBrowser)sender).Print()。

However I am aware that Win 11 no longer support IE browser, does that mean i have to modify my code? (I only use IE for printing purpose because I'm not familiar with winform.reports)

If so, which browser should I preferred? I did some research on CefSharp.WinForms but it doesn't support auto-printing,so i guess Edge is the way to go?

Please include tutorial link/ video with your answer/comment, thank you。

CodePudding user response:

I suggest you to use the new WebView2 control. See winform tutorial here.

In order to print a page you can find here a simple trick.

  • Related