Welcome Guest Search | Active Topics | Sign In | Register

Printing background image Options
usyber
Posted: Monday, February 1, 2016 9:37:58 AM
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:
Post


Best regards,
Uli

eo_support
Posted: Monday, February 1, 2016 11:23:43 AM
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-adjust

In order for EO.WebBrowser (and Chrome browser) to print background, you must set this value to exact.

Thanks!
usyber
Posted: Tuesday, February 2, 2016 1:24:11 AM
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-images

Best regards,
Uli
eo_support
Posted: Tuesday, February 2, 2016 10:32:22 AM
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!
usyber
Posted: Wednesday, February 3, 2016 3:43:18 AM
Rank: Newbie
Groups: Member

Joined: 11/12/2015
Posts: 9
Thank you for your answer!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.