I would like to found best solution for having same styles for dynamicReports and jasperReports. I started to use dynamicReports, however I found it hard to create unusual reports there. It was much easier to do that in iReport graphical builder. So now I have 50% reports which runs on Dynamic and 50% on Jasper.
Now I can't resolve style problem. I've created styles, fonts etc in Template class and used it for DynamicReports. After some magic like:
.setName("cellCenterStyle");
template().setColumnStyle(cellStyle)
I was able to use them for jasper, but this is not a full solution as some options still does not work, for example:
.setDetailEvenRowStyle(Template.evenIntensivStyle)
is working with dynamic, but jasper ignores is.
So, the question:
Could I use same styles for dynamic and jasper with clear structure and without needless "magic". I would prefer solution like *.css styles, but any help would be appreciated.