Backgrounds (Bars) aren’t printed by default by browser

Discuss issues related to v3.x
Post Reply
User avatar
Sachin
Posts: 10
Joined: Fri Aug 21, 2015 1:39 pm

Backgrounds (Bars) aren’t printed by default by browser

Post by Sachin » Wed Nov 23, 2016 6:39 am

Hello Suport,
Gantt Bar or Backgrounds aren’t printed by default by browsers, how to fix this without manual action?
And
How to force browser to set options like print background as a checked and print pages in landscape mode?

Configuration : Bryntum gantt-pro-4.2.7 & ExtJs 6.0.1 commercial version.

Thanks,
Sachin
Last edited by Sachin on Wed Nov 23, 2016 8:02 am, edited 1 time in total.

User avatar
mats
Premium Member
Premium Member
Posts: 15621
Joined: Sat Dec 19, 2009 11:41 pm
Location: Sweden
Contact:

Re: Backgrounds (Gantt Bars) aren’t printed by default by br

Post by mats » Wed Nov 23, 2016 6:47 am

1. Either engage a huge array of CSS tricks (replace bg-colors everywhere with colored border)

2. use modern CSS (we apply this rule for modern browsers to help where possible):

https://developer.mozilla.org/en-US/doc ... lor-adjust

3. Use PDF option to first export to PDF, then print the PDF.
Tired of debugging javascript errors in web applications? Try our new error logging service RootCause, or read more on the Sencha blog

@bryntum
Facebook
API documentation

User avatar
Sachin
Posts: 10
Joined: Fri Aug 21, 2015 1:39 pm

Re: Backgrounds (Bars) aren’t printed by default by browser

Post by Sachin » Wed Nov 23, 2016 8:28 am

Thanks Mats,

The CSS rule - @page {size: landscape;} is supposed to force browsers to print pages in landscape mode.
This rule is mentioned in many questions on stackoverflow, on many other programming sites.
Can this rule be used to set landscape ?

Post Reply