I am currently printing the contents of a WPF web browser as follows:
mshtml.IHTMLDocument2 doc = WebBrowser.Document as mshtml.IHTMLDocument2; doc.execCommand("Print", true, null);
My HTML content has tables with background colors. Currently, when I print content, the background colors do not print - everything is solid whiteness. Is there a way to tell WebBrowser to also print background colors?
In addition, it still brings up a print popup dialog. Does anyone know which command is for printing content without a dialog box?
Thank you so much!
c # browser printing wpf
Jtoland
source share