When I try to print a page with an ABMReport, the bottom of the sheet- i.e. not occupied by the ABMReport contents - will have the color specified for the background color of the webpage which creates the ABMReport.
If this color is white, everything is OK.
If the color is other than white, this color shows in the report. I have attached here a sample (see Pic1) showing the print preview of a page with a red background (just to highlight the issue).
One workaround is to disable printing background graphics, which takes care of the background color but also ommits other useful colors from the report (see Pic2).
I tried adding this command in Sub BuildPage():
but no changes occured in the printed document.
Is there a way to make the printed report sheet background white, regardless of the webpage background color?
If this color is white, everything is OK.
If the color is other than white, this color shows in the report. I have attached here a sample (see Pic1) showing the print preview of a page with a red background (just to highlight the issue).
One workaround is to disable printing background graphics, which takes care of the background color but also ommits other useful colors from the report (see Pic2).
I tried adding this command in Sub BuildPage():
B4X:
page.InjectCSS("@media only print {body{background-color: white}}")
Is there a way to make the printed report sheet background white, regardless of the webpage background color?