|
Rank: Newbie Groups: Member
Joined: 11/12/2015 Posts: 9
|
Dear support team, is it possible to print background images with the WebView print API? Or is there maybe a workaround possible? webView.Print(false, null, null); Other previous post: PostBest regards, Uli
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi, This behavior is controlled by this CSS style: https://developer.mozilla.org/en-US/docs/Web/CSS/-webkit-print-color-adjustIn order for EO.WebBrowser (and Chrome browser) to print background, you must set this value to exact. Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 11/12/2015 Posts: 9
|
Thank you for your answer. Is there a possibility to setup the WebView container like other browser does it with additional settings dialogs? e.g. FF, IE, Chrome: http://its.yale.edu/how-to/article-printing-web-page-background-colors-and-imagesBest regards, Uli
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
Unfortunately no, currently we do not have this option through our API. The only way to control this is through CSS. It's possible for you to use JavaScript to set this CSS property before printing through WebView.EvalScript though.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 11/12/2015 Posts: 9
|
Thank you for your answer!
|
|