Print not working in latest Windows 10 version from winforms using Forms.WebBrowser control

Ateeq Rahman 1 Reputation point
2020-09-28T05:03:04.3+00:00

From Click once applet the Print feature is not passing on the documents (PDF) to the printer queue. There is no error, it just does not do anything. Whereas we can print PDF's outside of the applet. The applet uses System.Windows.Forms WebBrowser class to view the PDF's and if any default PDF viewer application is installed it uses that to view PDF's.

We are seeing this issue more recently with Windows update of following builds. OS Name: Microsoft Windows 10 Pro OS Version: 10.0.19041 Build 19041 .Net Framework 4.6.2

The line of code used, cwbPreview.Print()
where cwbPreview is the instance of System.Windows.Forms.WebBrowser

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
5,986 questions
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,325 questions
No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Jenny Yan-MSFT 9,206 Reputation points
    2020-09-29T01:37:02.917+00:00

    Hi,
    We are seeing this issue more recently with Windows update of following build.
    Since then, please test by removing the windows update installed recently. And if the issue disappears, it might be the conflict between the patch and the applet, for which, you would wait for next update in the following months.

    But if the issue persist, then you could contact the support of applet vendor or discuss code used in the corresponding developer forum.
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=csharpgeneral&filter=alltypes&sort=firstpostdesc

    Hope this helps and please help to accept as Answer if the response is useful.

    Thanks,
    Jenny

    No comments