da00501230 Posted July 3, 2019 Share Posted July 3, 2019 Can we build a report by selecting multiple programmes and the output to be displayed one page per programme Link to comment Share on other sites More sharing options...
C-Box Posted July 3, 2019 Share Posted July 3, 2019 Sure, just group your report at the field "$F{programme}" and set the flag "StartOnNewPage" at GroupLevel. So every "programme" value would cause a new page. :-) Of course a stretching content within one group could also cause 2 (or more) pages per group.(be aware of the OrderBy in your query.... it should match with the group(s) order defined in your design/jrxml)hth + regardsC-Box Link to comment Share on other sites More sharing options...
da00501230 Posted July 3, 2019 Author Share Posted July 3, 2019 Thank you for your suggestion Implementated the same it's it working for the report which has only one master report.While my report contains a subreport which is giving me blank pages while executing .so when I run the master report I am getting some malfunction error .can you help me in this . Link to comment Share on other sites More sharing options...
C-Box Posted July 4, 2019 Share Posted July 4, 2019 Not really clear, what your structure and grouping is now - so difficult to help.Perhaps you should post some error-logs, screenshots and perhaps also the jrxmls if possible!??regardsC-Box Link to comment Share on other sites More sharing options...
da00501230 Posted July 4, 2019 Author Share Posted July 4, 2019 net.sf.jasperreports.engine.JRException: java.util.ConcurrentModificationException at com.jaspersoft.studio.editor.preview.view.control.ReportControler.fillReport(ReportControler.java:548) at com.jaspersoft.studio.editor.preview.view.control.ReportControler.access$20(ReportControler.java:523) at com.jaspersoft.studio.editor.preview.view.control.ReportControler$5.run(ReportControler.java:404) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)Caused by: java.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901) at java.util.ArrayList$Itr.next(ArrayList.java:851) at com.jaspersoft.studio.server.editor.JRSRepositoryService.getFromParent(JRSRepositoryService.java:279) at com.jaspersoft.studio.server.editor.JRSRepositoryService.doGetResource(JRSRepositoryService.java:197) at com.jaspersoft.studio.server.editor.JRSRepositoryService.getResource(JRSRepositoryService.java:174) at com.jaspersoft.studio.utils.jasper.JSSFileRepositoryService.doGetResource(JSSFileRepositoryService.java:76) at com.jaspersoft.studio.utils.jasper.JSSFileRepositoryService.getResource(JSSFileRepositoryService.java:67) at net.sf.jasperreports.repo.RepositoryUtil.getResourceFromLocation(RepositoryUtil.java:144) at net.sf.jasperreports.repo.RepositoryUtil.getReport(RepositoryUtil.java:112) at net.sf.jasperreports.engine.fill.JRFillSubreport.loadReport(JRFillSubreport.java:398) at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluateReport(JRFillSubreport.java:365) at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluateSubreport(JRFillSubreport.java:427) at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluate(JRFillSubreport.java:341) at net.sf.jasperreports.engine.fill.JRFillElementContainer.evaluate(JRFillElementContainer.java:381) at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:500) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummaryNoLastFooterSamePage(JRVerticalFiller.java:1065) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillSummary(JRVerticalFiller.java:1026) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportEnd(JRVerticalFiller.java:287) at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:122) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:586) at net.sf.jasperreports.engine.fill.BaseReportFiller.fill(BaseReportFiller.java:398) at net.sf.jasperreports.engine.fill.JRFillSubreport.fillSubreport(JRFillSubreport.java:732) at net.sf.jasperreports.engine.fill.JRSubreportRunnable.run(JRSubreportRunnable.java:59) at net.sf.jasperreports.engine.fill.AbstractThreadSubreportRunner.run(AbstractThreadSubreportRunner.java:221) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) this is the error msg i am getting <?xml version="1.0" encoding="UTF-8"?><!-- Created with Jaspersoft Studio version 6.4.2.final using JasperReports Library version 6.4.1 --><jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="G2G Pilot" pageWidth="1100" pageHeight="1500" whenNoDataType="AllSectionsNoDetail" columnWidth="1100" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" uuid="305aab7e-6150-49cf-97ff-35c1812f7f1f"> <property name="com.jaspersoft.studio.data.sql.tables" value=""/> <property name="com.jaspersoft.studio.data.defaultdataadapter" value="BT Dev DB"/> <property name="com.jaspersoft.studio.unit." value="pixel"/> <property name="ireport.jasperserver.url" value="https://cppmrpt205s.ondemand.ca.com/reportservice/"/> <property name="ireport.jasperserver.user" value="report_developer|cppm3041_test"/> <property name="ireport.jasperserver.report.resource" value="/GS_Custom_Reports/G2G_Pilot_files/main_jrxml"/> <property name="ireport.jasperserver.reportUnit" value="/GS_Custom_Reports/G2G_Pilot"/> <property name="com.jaspersoft.studio.unit.pageHeight" value="pixel"/> <property name="com.jaspersoft.studio.unit.pageWidth" value="pixel"/> <property name="com.jaspersoft.studio.unit.topMargin" value="pixel"/> <property name="com.jaspersoft.studio.unit.bottomMargin" value="pixel"/> <property name="com.jaspersoft.studio.unit.leftMargin" value="pixel"/> <property name="com.jaspersoft.studio.unit.rightMargin" value="pixel"/> <property name="com.jaspersoft.studio.unit.columnWidth" value="pixel"/> <property name="com.jaspersoft.studio.unit.columnSpacing" value="pixel"/> <parameter name="p_program_id" class="java.util.Collection"/> <queryString language="SQL"> <![CDATA[sELECT DISTINCT company_name, inv.id, inv.name, inv.code , (SELECT srm.full_name FROM srm_resources srm WHERE inv.MANAGER_ID=srm.user_id)project_lead, (SELECT srm1.full_name FROM srm_resources srm1 WHERE srm1.id=odf.bt_client_services_v)client_service, (SELECT srm2.full_name FROM srm_resources srm2 WHERE srm2.id=odf.bt_csd)csd, to_char(odf.bt_return_to_green,'dd/mm/YYYY')return_to_green, odf.bt_jou_fte, odf.bt_exec_summary, odf.bt_highs, odf.bt_lows, odf.bt_dependencies, (SELECT cmn.name FROM cmn_lookups_v cmn where cmn.language_code = 'en' and cmn.lookup_type = 'BT_RAG' and cmn.lookup_code = odf.bt_cedrag)cedrag, substr(obs.PATH,5)as newpath, (SELECT srm.full_name FROM srm_resources srm WHERE srm.user_id=inv.last_updated_by)last_updated_by, TO_char(inv.last_updated_date,'dd/mm/YYYY')last_updated_dateFROM odf_ca_project odf, srm_companies src, inv_investments inv, inv_projects inp, (select s.id,n.path from NBI_DIM_OBS n,PRJ_OBS_ASSOCIATIONS p,SRM_PROJECTS swhere p.table_name='SRM_PROJECTS'and n.obs_type_name='BT Project OBS'and p.unit_id=n.obs_unit_idand P.RECORD_ID = S.ID)obsWHERE odf.bt_customer=src.company_id(+)AND odf.bt_prj_lob='gs'AND inv.id=odf.idAND inv.IS_ACTIVE=1AND inv.id=inp.prid and inp.is_program=1AND obs.id(+)=inv.idAND $X{IN,inv.id,p_program_id}]]> </queryString> <field name="COMPANY_NAME" class="java.lang.String"/> <field name="ID" class="java.math.BigDecimal"/> <field name="NAME" class="java.lang.String"/> <field name="CODE" class="java.lang.String"/> <field name="PROJECT_LEAD" class="java.lang.String"/> <field name="CLIENT_SERVICE" class="java.lang.String"/> <field name="CSD" class="java.lang.String"/> <field name="RETURN_TO_GREEN" class="java.lang.String"/> <field name="BT_JOU_FTE" class="java.math.BigDecimal"/> <field name="BT_EXEC_SUMMARY" class="java.lang.String"/> <field name="BT_HIGHS" class="java.lang.String"/> <field name="BT_LOWS" class="java.lang.String"/> <field name="BT_DEPENDENCIES" class="java.lang.String"/> <field name="CEDRAG" class="java.lang.String"/> <field name="NEWPATH" class="java.lang.String"/> <field name="LAST_UPDATED_BY" class="java.lang.String"/> <field name="LAST_UPDATED_DATE" class="java.lang.String"/> <group name="Group1" isStartNewPage="true" keepTogether="true"> <groupExpression><![CDATA[$F{ID}.intValue()]]></groupExpression> <groupHeader> <band height="571"> <staticText> <reportElement x="0" y="0" width="70" height="30" forecolor="#003366" uuid="6ab43aec-3dd4-4eeb-b71d-f18f93d0ab55"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> </reportElement> <box leftPadding="5"/> <textElement> <font fontName="Arial" size="10" isBold="true"/> <paragraph leftIndent="5" rightIndent="5" spacingBefore="5" spacingAfter="5"/> </textElement> <text><![CDATA[Account:]]></text> </staticText> <textField isBlankWhenNull="true"> <reportElement x="70" y="0" width="410" height="30" uuid="05cba13b-a0e8-4c64-825b-f2090a1134df"/> <box leftPadding="5"/> <textElement> <font fontName="Arial" size="10" isBold="true"/> <paragraph firstLineIndent="0" leftIndent="5" rightIndent="5" spacingBefore="5" spacingAfter="5"/> </textElement> <textFieldExpression><![CDATA[$F{COMPANY_NAME}]]></textFieldExpression> </textField> <staticText> <reportElement x="0" y="30" width="70" height="30" forecolor="#033660" uuid="7721be13-dd17-4e69-894f-20315b1dff7a"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> </reportElement> <box leftPadding="5"/> <textElement> <font fontName="Arial" size="10" isBold="true"/> <paragraph leftIndent="5" rightIndent="5" spacingBefore="5" spacingAfter="5"/> </textElement> <text><![CDATA[Vertical:]]></text> </staticText> <textField isBlankWhenNull="true"> <reportElement x="70" y="30" width="410" height="30" uuid="2ed0bda4-8301-4464-a3ec-67d3e8ddf4d1"/> <box leftPadding="5"/> <textElement> <font fontName="Arial" size="10" isBold="true"/> <paragraph firstLineIndent="0" leftIndent="5" rightIndent="5" spacingBefore="5" spacingAfter="5"/> </textElement> <textFieldExpression><![CDATA[$F{NEWPATH}]]></textFieldExpression> </textField> <staticText> <reportElement x="0" y="60" width="70" height="30" forecolor="#033660" uuid="aede206b-c5a7-416c-86d2-f1aa50944c30"> <property name="com.jaspersoft.studio.unit.width" value="pixel"/> </reportElement> <box leftPadding="5"/> <textElement> <font fontName="Arial" size="10" isBold="true"/> <paragraph leftIndent="5" rightIndent="5" spacingBefore="5" spacingAfter="5"/> </textElement> <text><![CDATA[Project:]]></text> </staticText> <textField isBlankWhenNull="true"> <reportElement x="70" y="60" width="410" height="30" uuid="0a2dfcae-e88e-403b-912f-7849c48d7614"/> <box leftPadding="5"/> <textElement> <font fontName="Arial" size="10" isBold="true"/> <paragraph firstLineIndent="0" leftIndent="5" rightIndent="5" spacingBefore="5" spacingAfter="5"/> </textElement> <textFieldExpression><![CDATA[$F{NAME}]]></textFieldExpression> </textField> <staticText> <reportElement x="1" y="100" width="89" height="30" forecolor="#033660" uuid="1f11eefa-431c-4efe-96df-1a8638e2c8ce"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> </reportElement> <box leftPadding="5"> <pen lineWidth="1.0" lineColor="#000000"/> </box> <textElement verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="true"/> <paragraph firstLineIndent="0" leftIndent="5" rightIndent="5" spacingBefore="5" spacingAfter="5"/> </textElement> <text><![CDATA[Client Service VP:]]></text> </staticText> <textField isBlankWhenNull="true"> <reportElement x="90" y="100" width="151" height="30" uuid="c799f1e1-0db6-4e08-989a-050eb9b6e5ed"/> <box leftPadding="5"> <pen lineWidth="1.0"/> </box> <textElement verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="false"/> <paragraph leftIndent="5" rightIndent="5" spacingBefore="5" spacingAfter="5"/> </textElement> <textFieldExpression><![CDATA[$F{CLIENT_SERVICE}]]></textFieldExpression> </textField> <staticText> <reportElement x="241" y="100" width="100" height="30" forecolor="#033660" uuid="6f4093a8-a1f3-46bb-be4b-cd411d285d4e"/> <box leftPadding="5"> <pen lineWidth="1.0" lineColor="#000000"/> </box> <textElement verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="true"/> <paragraph firstLineIndent="0" leftIndent="5" rightIndent="5" spacingBefore="5" spacingAfter="5"/> </textElement> <text><![CDATA[Return to Green: ]]></text> </staticText> <textField isBlankWhenNull="true"> <reportElement x="341" y="100" width="139" height="30" uuid="5616f255-f9a3-471f-a946-c46bbde3f4e7"/> <box leftPadding="5"> <pen lineWidth="1.0"/> </box> <textElement verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="false"/> <paragraph leftIndent="5" rightIndent="5" spacingBefore="5" spacingAfter="5"/> </textElement> <textFieldExpression><![CDATA[$F{RETURN_TO_GREEN}]]></textFieldExpression> </textField> <staticText> <reportElement x="1" y="130" width="89" height="30" forecolor="#033660" uuid="8ae1eea7-57a1-4fa6-9aee-011438cde4ed"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> </reportElement> <box leftPadding="5"> <pen lineWidth="1.0" lineColor="#000000"/> </box> <textElement verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="true"/> <paragraph firstLineIndent="0" leftIndent="5" rightIndent="5" spacingBefore="5" spacingAfter="5"/> </textElement> <text><![CDATA[CSD:]]></text> </staticText> <textField isBlankWhenNull="true"> <reportElement x="90" y="130" width="151" height="30" uuid="d4839305-4b90-4994-8ef2-af26e3984ba9"/> <box leftPadding="5"> <pen lineWidth="1.0"/> </box> <textElement verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="false"/> <paragraph leftIndent="5" rightIndent="5" spacingBefore="5" spacingAfter="5"/> </textElement> <textFieldExpression><![CDATA[$F{CSD}]]></textFieldExpression> </textField> <staticText> <reportElement x="241" y="130" width="100" height="30" forecolor="#033660" uuid="89915ef7-f7d4-4c0f-8e2f-f141c3745acb"/> <box leftPadding="5"> <pen lineWidth="1.0" lineColor="#000000"/> </box> <textElement verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="true"/> <paragraph firstLineIndent="0" leftIndent="5" rightIndent="5" spacingBefore="5" spacingAfter="5"/> </textElement> <text><![CDATA[Last Updated:]]></text> </staticText> <textField isBlankWhenNull="true"> <reportElement x="341" y="130" width="139" height="30" uuid="59248c36-a964-4083-a7c4-14351ec151ba"/> <box leftPadding="5"> <pen lineWidth="1.0"/> </box> <textElement verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="false"/> <paragraph leftIndent="5" rightIndent="5" spacingBefore="5" spacingAfter="5"/> </textElement> <textFieldExpression><![CDATA[$F{LAST_UPDATED_DATE}]]></textFieldExpression> </textField> <staticText> <reportElement x="1" y="160" width="89" height="40" forecolor="#033660" uuid="d5427e11-cf19-47e7-9091-ef6521c692dd"/> <box leftPadding="5"> <pen lineWidth="1.0" lineColor="#000000"/> </box> <textElement verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="true"/> <paragraph firstLineIndent="0" leftIndent="5" rightIndent="5" spacingBefore="5" spacingAfter="5"/> </textElement> <text><![CDATA[Project Lead:]]></text> </staticText> <textField isBlankWhenNull="true"> <reportElement x="90" y="160" width="151" height="40" uuid="15e4f080-7917-4aba-8f0c-296204e59b04"> <property name="com.jaspersoft.studio.unit.y" value="pixel"/> </reportElement> <box leftPadding="5"> <pen lineWidth="1.0"/> </box> <textElement verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="false"/> <paragraph leftIndent="5" rightIndent="5" spacingBefore="5" spacingAfter="5"/> </textElement> <textFieldExpression><![CDATA[$F{PROJECT_LEAD}]]></textFieldExpression> </textField> <staticText> <reportElement x="241" y="160" width="100" height="40" forecolor="#033660" uuid="dba96581-a7c6-4798-a423-e1ac1a2bd93d"/> <box leftPadding="5"> <pen lineWidth="1.0" lineColor="#000000"/> </box> <textElement verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="true"/> <paragraph firstLineIndent="0" leftIndent="5" rightIndent="5" spacingBefore="5" spacingAfter="5"/> </textElement> <text><![CDATA[updated By:]]></text> </staticText> <textField isBlankWhenNull="true"> <reportElement x="341" y="160" width="139" height="40" uuid="1801bca3-406c-4631-b803-06fba7efddcd"> <property name="com.jaspersoft.studio.unit.y" value="pixel"/> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> </reportElement> <box leftPadding="5"> <pen lineWidth="1.0"/> </box> <textElement verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="false"/> <paragraph leftIndent="5" rightIndent="5" spacingBefore="5" spacingAfter="5"/> </textElement> <textFieldExpression><![CDATA[$F{LAST_UPDATED_BY}]]></textFieldExpression> </textField> <staticText> <reportElement x="1" y="200" width="89" height="30" forecolor="#033660" uuid="4e5da528-a301-4b99-8b76-4ea98326cdb6"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> </reportElement> <box leftPadding="5"> <pen lineWidth="1.0" lineColor="#000000"/> </box> <textElement verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="true"/> <paragraph firstLineIndent="0" leftIndent="5" rightIndent="5" spacingBefore="5" spacingAfter="5"/> </textElement> <text><![CDATA[CED RAG:]]></text> </staticText> <textField isBlankWhenNull="true"> <reportElement x="90" y="200" width="151" height="30" uuid="3b4c7620-0c55-4b24-8396-85ab9a4b8361"/> <box leftPadding="5"> <pen lineWidth="1.0"/> </box> <textElement verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="false"/> <paragraph leftIndent="5" rightIndent="5" spacingBefore="5" spacingAfter="5"/> </textElement> <textFieldExpression><![CDATA[$F{CEDRAG}]]></textFieldExpression> </textField> <staticText> <reportElement x="241" y="200" width="100" height="30" forecolor="#033660" uuid="56d1312c-e134-478f-ba1f-b3955f4a2692"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> </reportElement> <box leftPadding="5"> <pen lineWidth="1.0" lineColor="#000000"/> </box> <textElement verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="true"/> <paragraph firstLineIndent="0" leftIndent="5" rightIndent="5" spacingBefore="5" spacingAfter="5"/> </textElement> <text><![CDATA[JOU FTE > 2]]></text> </staticText> <textField isBlankWhenNull="true"> <reportElement x="341" y="200" width="139" height="30" uuid="0db48c2c-fb7f-4661-881c-819c5912feee"/> <box leftPadding="5"> <pen lineWidth="1.0"/> </box> <textElement verticalAlignment="Middle"> <font fontName="Arial" size="10" isBold="false"/> <paragraph leftIndent="5" rightIndent="5" spacingBefore="5" spacingAfter="5"/> </textElement> <textFieldExpression><![CDATA[$F{BT_JOU_FTE}]]></textFieldExpression> </textField> <subreport> <reportElement x="0" y="380" width="200" height="50" uuid="70045ab8-cf0d-4b2d-92b4-8aabbcf06664"> <property name="com.jaspersoft.studio.unit.x" value="pixel"/> <property name="com.jaspersoft.studio.unit.y" value="pixel"/> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> </reportElement> <subreportParameter name="p_program_id"> <subreportParameterExpression><![CDATA[$F{ID}.intValue()]]></subreportParameterExpression> </subreportParameter> <connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression> <subreportExpression><![CDATA["G2G_Risk.jasper"]]></subreportExpression> </subreport> <staticText> <reportElement x="0" y="260" width="1100" height="20" forecolor="#033660" uuid="cd145838-4a3c-43a6-9fd5-71e2ee1c06bd"> <property name="com.jaspersoft.studio.unit.width" value="pixel"/> </reportElement> <box leftPadding="5"/> <textElement textAlignment="Left" verticalAlignment="Top"> <font fontName="Arial" size="10" isBold="true"/> <paragraph leftIndent="5" rightIndent="5" spacingBefore="5" spacingAfter="5"/> </textElement> <text><![CDATA[Executive Summary:]]></text> </staticText> <line> <reportElement x="5" y="285" width="1085" height="1" uuid="90c346ef-7050-4035-b7ac-03c01c3c2782"> <property name="com.jaspersoft.studio.unit.y" value="pixel"/> </reportElement> </line> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement stretchType="RelativeToTallestObject" x="0" y="300" width="1090" height="40" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" uuid="3bf9b0b0-9470-4df0-a51b-e51e7912dd14"> <property name="com.jaspersoft.studio.unit.x" value="pixel"/> <property name="com.jaspersoft.studio.unit.y" value="pixel"/> </reportElement> <box leftPadding="5"/> <textElement> <font fontName="Arial" size="10" isBold="false"/> <paragraph leftIndent="5" rightIndent="5" spacingBefore="5" spacingAfter="5"/> </textElement> <textFieldExpression><![CDATA[$F{BT_EXEC_SUMMARY}]]></textFieldExpression> </textField> <subreport> <reportElement x="610" y="30" width="200" height="200" uuid="f16fa6b5-042d-4974-a254-0289ab66abe9"/> <subreportParameter name="p_program_id"> <subreportParameterExpression><![CDATA[$F{ID}.intValue()]]></subreportParameterExpression> </subreportParameter> <connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression> <subreportExpression><![CDATA["Blank_A4.jasper"]]></subreportExpression> </subreport> </band> </groupHeader> </group> <pageHeader> <band height="70" splitType="Stretch"> <image> <reportElement x="10" y="10" width="130" height="50" uuid="cde3d311-7060-49ae-9969-3fd1f37af3d4"> <property name="com.jaspersoft.studio.unit.width" value="pixel"/> </reportElement> <imageExpression><![CDATA["BT_colour_pos.png"]]></imageExpression> </image> </band> </pageHeader> <pageFooter> <band height="32" splitType="Stretch"> <line> <reportElement x="0" y="0" width="1100" height="1" forecolor="#6B3600" uuid="994d5b5d-7287-423a-a816-615053d19929"/> <graphicElement> <pen lineWidth="4.0"/> </graphicElement> </line> <line> <reportElement x="0" y="5" width="1100" height="1" forecolor="#6B3600" uuid="27652c96-01db-4491-a285-0818334c74b8"> <property name="com.jaspersoft.studio.unit.width" value="pixel"/> <property name="com.jaspersoft.studio.unit.y" value="pixel"/> </reportElement> </line> <textField> <reportElement x="0" y="7" width="800" height="15" uuid="92d86394-1b0e-48ea-bdc2-4fcd04d40773"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> <property name="com.jaspersoft.studio.unit.x" value="pixel"/> </reportElement> <textElement> <font fontName="Arial" size="8"/> </textElement> <textFieldExpression><![CDATA[$F{NAME}]]></textFieldExpression> </textField> <staticText> <reportElement x="1050" y="7" width="30" height="15" uuid="204ac8cc-995d-4f5f-8799-e2fd7a6ae2f4"> <property name="com.jaspersoft.studio.unit.y" value="pixel"/> </reportElement> <textElement> <font fontName="Arial" size="8"/> </textElement> <text><![CDATA[Page]]></text> </staticText> <textField> <reportElement x="1080" y="7" width="20" height="15" uuid="7d94d1af-eeef-4f14-b4b2-51f48ac41fcd"> <property name="com.jaspersoft.studio.unit.y" value="pixel"/> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> <property name="com.jaspersoft.studio.unit.width" value="pixel"/> </reportElement> <textElement> <font fontName="Arial" size="8"/> </textElement> <textFieldExpression><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression> </textField> </band> </pageFooter></jasperReport> this is the jrxml Link to comment Share on other sites More sharing options...
C-Box Posted July 4, 2019 Share Posted July 4, 2019 Not sure and bit confusing.... why you have placed a "blank_A4" SubReport in the right upper area of the group header band? What should appear there?And as you don't have any footer why you have set "Keep together" at grouplevel?The error seems to be within the SubReport... as there seems to be any resource in summary band??! (so this is, what I guess (!) from stacktrace)Do you call perhaps another subReport recursivly? So the jrxml of your subreport ""G2G_Risk.jasper" would be helpful.regardsC-Box Link to comment Share on other sites More sharing options...
da00501230 Posted July 4, 2019 Author Share Posted July 4, 2019 blank_A4 is the subreport is giving blank page when run individually and error when added to the main report Link to comment Share on other sites More sharing options...
C-Box Posted July 4, 2019 Share Posted July 4, 2019 And for what reason you need an empty A4 report within your MasterReport???? Very confusing construct. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now