This content has been marked as final. Show 3 replies
Despite the fact that Flex docs FlexPrintJob states: "... it can print information that is not being displayed." - if I momentarily display the page to be printed, the background color no longer prints under the containers except for the right-hand Padding of the parent VBox. It does not appear in the left-hand Padding!!
So I now have a broad strip of color down the right hand side of the page.
I have tried setting the global color to black:
This has no effect.
Anyone successfully printed a complicated page that is not a DataGrid and got it to print the text in black?
Solved the print in black problem. You have to set the printAsBitmap parameter to false and then it prints in black.
So, one problem left. How to get rid of the greenish-gray strip on the right-hand side of the page where the paddingRight space is.
Finally solved the color problem. The only way I could find to get rid of the background color was to set background color to "0xffffff" in the mx:Application tag.
The print out is now correct in all respects, but I must say that the documentation on printing in Flex is full of half-truths and sometimes is just plain wrong.
As I have proved Flex can print perfectly, but you're hard-pressed to find the way.