Hello everyone,
I'm trying to write a plugin, that can print the current document, similiar to the default print button.
The idea is that I can directly print JasperReports from the server and also give preconfigured parameters, like which printer and paper tray should be used.
My problem is, that I don't really understand how the finished JasperReport is usually created. I know the ReportStarter class handles it all,
but it also decides if it should print directly or show the preview for example. Therefore I can't influence the printing very much and have to implement my own 'ReportStarter'-logic.
I imagined that my Plugin should be mostly independent from iDempiere logic, I just need to get a compiled and filled Report File for a given .jrxml and RECORD_ID.
But there doesn't seem to be a method or class that does just this.
If you have any idea how I could do this or suggestions for alternative solutions, any help would be much appreciated.
Regards,
David