Question WebBrowser print document name

cbreemer

Well-known member
Joined
Dec 1, 2021
Messages
188
Programming Experience
10+
I have a form that uses both a CefBrowser and a WebBrowser (don't ask why 🙂)
Both components get loaded with complete HTML created by the program. Both have a Print button.
Now when I print the CefBrowser, a nice feature is that the document title (in the Windows Print Queue monitor) is taken from the <title> in the HTML.
However when I print the WebBrowser, the <title> in the HTML is ignored, and the document title is always about:blank.
I've looked through the WebBrowser constructors, properties and methods but I don't see a way to set the document name.
Any ideas out there ?
 
Back
Top Bottom