I have a main report and two sub report which contains one cross tab in each. I want to set width and left property of both sub report in detail band dynamically which I will pass as a param to main report. In between both sub report there is a gap, how to remove it? Cross tab has dynamic no of columns. I can calculate the width of both sub report and set main report page width(total of both sub report) as per that calculated value and also pass those as param. Any help is appreciated. I have tried to set pageWidth and Left/Width property from param but that's not working.
Get idea from following post and done it.
Code snippet :
JRPrintPage page = jasperPrint.getPages().get(0);
List<JRPrintElement> pageElements = page.getElements();