In here for different view mode we have made some work . But in that case we had a simple problem when we try to get print-out.
Everything is awesome on the screen , we have all pages with page breaks. But when we want to print it out we saw that some piece of the report is missed. And it is not good .
But we have find a solution for it and it is very simple; setting media dpi for DocumentInstance. Really simple
For A4 we added
documentInstance.setMediaDPI(72);
this piece of code to the project and got the solution.
But I didn’t understand why this method is deprecated, it is interesting. If somebody knows anything let me know too.
Have a nice days fellows.