daveomcd daveomcd - 4 years ago 412
Vb.net Question

How can I print colors when printing a page in bootstrap?

I'm trying to print a page with colors on my asp.net site. But all the colors just come out white. However my Highcharts colors and images come out in color. I'm using Bootstrap 3, not sure if that is affecting anything, and I've also check the box to print background colors. Does anyone know why my colors aren't printing?

Answer Source

Found the solution shortly after posting the question. The following line in bootstrap.css needs to be changed.

@media print{*{text-shadow:none !important;color:#000 !important;background:transparent !important;box-shadow:none !important;}

For my purposes I removed the color: and background: properties.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download