Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines
Sorry for the delay. Regarding table cell/footer css color when printing, it seems the problem is because Bootstrap theme overrides the td, tf colors when printing. Our solution would be adding a css class to the cell/footer and set the css rule for that exact class to override Bootstrap's like this:
<style>
@media print {
/* 1. Beat the override on the cell itself */
tfoot td.my-cell {
color: blue !important;
}
}
</style>
<?php
Table::create(array(
...
"cssClass" => array(
"tf" => function ($columnName) {
return "my-cell"; // or return class based on column name
},
)
));
Another solution is using table name like this:
<style>
@media print {
#myTable tfoot td {
color: blue !important;
}
}
</style>
<?php
Table::create(array(
"name" => "myTable",
...
));
Let us know how this works for you. Tks,
Let KoolReport help you to make great reports. It's free & open-source released under MIT license.
Download KoolReport View demo