Is there a way to determine if the user clicked Print or Cancel in WebBrowser.ShowDialog ()?

I'm just trying to determine if the user has selected Print or Cancel in the dialog box. I cannot find any event or property that could tell me if the document displayed in WebBrowser was actually sent to the printer. The closest I can get right now is to determine if a dialog box has opened.

Is it possible?

Thanks.

(We use DevEx, so if what I need is possible through one of their controls, I would be interested too.)

Background: what we show in WebBrowser is the contents of the xml files located in the directory next to their XSL file.

+4
source share
1 answer

If you are talking about ShowPrintDialog() , I think there is a problem with the return, as it calls the user interface of the selected printer. This interface is not necessarily standardized, so you may have a window without a cancel button: /

When you encounter a similar problem, I just created a simple β€œprint form” and use WebBrowser.Print() to print

0
source

All Articles