How can I make the app print in color?
When I add color in a rich text/html field, it will only print in b&w even if I use the system dialog. It is the same on any computer I print on using my app.
Print in Color
Re: Print in Color
Bootstrap and the available Bootswatch Themes change colors to black/transparent forHow can I make the app print in color?
@media print
by default, as far as I know.You should be able to overwrite those style definitions by defining your custom CSS styles.
You can open your browser's developer tools (
F12
), in Sources tab, find you specific CSS file or files, search for @media print
. There you will see all color- and background-color-definitions for printout.
Example
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
AppGini 24.10 Revision 1579 + all AppGini Helper tools
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readabilityAppGini 24.10 Revision 1579 + all AppGini Helper tools
Re: Print in Color
I did some tests. First I changed background-color of
In print preview, Bootstrap renders those in black/transparent:
After overwriting those styles for
... I've seen that print preview still renders in black/transparent, unfortunately, but then I have seen the following option in browser's printing dialog:
There is an option for background-graphics. So, you may check if there is such an option in your printer settings dialog.
<pre>
-elements with the following CSS:Code: Select all
<style>
pre {
background-color: lightgoldenrodyellow !important;
}
</style>
After overwriting those styles for
@media print
like this...
Code: Select all
<style>
pre {
background-color: lightgoldenrodyellow !important;
}
@media print {
* {
text-shadow: none !important;
color: #000 !important;
background: transparent !important;
box-shadow: none !important;
}
}
</style>
There is an option for background-graphics. So, you may check if there is such an option in your printer settings dialog.
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
AppGini 24.10 Revision 1579 + all AppGini Helper tools
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readabilityAppGini 24.10 Revision 1579 + all AppGini Helper tools
Re: Print in Color
Thank you again, Jan as usual you're such a great help to everyone!