I use the webbrowser control in winforms and found that the background images that I use with css are not included in the printouts.
Is there a way to force webbrowser to also print the background of the displayed document?
Edit: Since I wanted to do this programmatically, I chose this solution:
using Microsoft.Win32;
...
RegistryKey regKey = Registry.CurrentUser
.OpenSubKey("Software")
.OpenSubKey("Microsoft")
.OpenSubKey("Internet Explorer")
.OpenSubKey("Main");
var defaultValue = regKey.GetValue("Print_Background");
regKey.SetValue("Print_Background", "yes");
regKey.SetValue("Print_Background", defaultValue);
Another way to deal with this may be to simply read the value and notify the user about it before typing. I have to agree that setting up using the registry as this is not good practice, so I am open to any suggestions.
Thanks for all your feedback.
source
share