I don't know why the group 3 header is not printing on the second page only.
I will attach the sample pdf and the source code.
<?xml version="1.0" encoding="UTF-8"?> <!-- Created with Jaspersoft Studio version 6.20.1.final using JasperReports Library version 6.20.1-7584acb244139816654f64e2fd57a00d3e31921e --> <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="SEIKYUSHO" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="30" rightMargin="30" topMargin="35" bottomMargin="30" isSummaryWithPageHeaderAndFooter="true" isFloatColumnFooter="true" uuid="94d3acdf-d9ae-47f7-be86-84a1ef420c86"> <property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/> <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"/> <queryString> <![CDATA[]]> </queryString> <field name="d_no_nouhin" class="java.lang.Long"> <fieldDescription><![CDATA[d_no_nouhin]]></fieldDescription> </field> <field name="t_cd_seikyu" class="java.lang.String"> <fieldDescription><![CDATA[t_cd_seikyu]]></fieldDescription> </field> <field name="seikyu_dt" class="java.util.Date"> <fieldDescription><![CDATA[seikyu_dt]]></fieldDescription> </field> <field name="d_date" class="java.util.Date"> <fieldDescription><![CDATA[d_date]]></fieldDescription> </field> <field name="s_name" class="java.lang.String"> <fieldDescription><![CDATA[s_name]]></fieldDescription> </field> <field name="d_no_seikyu" class="java.lang.Long"> <fieldDescription><![CDATA[d_no_seikyu]]></fieldDescription> </field> <group name="Group_d_no_seikyu" isStartNewPage="true" isResetPageNumber="true"> <groupExpression><![CDATA[$F{d_no_seikyu}]]></groupExpression> <groupHeader> <band height="177"> <rectangle> <reportElement x="4" y="132" width="446" height="42" uuid="602049d4-89f5-4e49-b195-d0314b2864b5"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> </rectangle> <line> <reportElement x="4" y="142" width="446" height="1" uuid="3abfe5c9-7fcb-494d-a68a-2e272c9e748a"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> </line> <line> <reportElement x="89" y="132" width="1" height="42" uuid="92487502-0fb6-4e70-91a1-0723e97390a0"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> </line> <line> <reportElement x="174" y="132" width="1" height="42" uuid="b7bb674c-d911-42cb-ba11-387d69835007"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> </line> <line> <reportElement x="260" y="132" width="1" height="42" uuid="d08a142f-60d4-40d0-8605-3681bf6348fd"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> </line> <line> <reportElement x="364" y="132" width="1" height="42" uuid="3fe7528c-298d-48f7-bdc5-b770fffae656"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> </line> <rectangle> <reportElement x="456" y="132" width="75" height="41" uuid="6976650c-7dd7-46f1-855c-30ea9b32920e"> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> </rectangle> <line> <reportElement x="493" y="132" width="1" height="41" uuid="18a150ec-87cf-4a6e-b9fd-569cad068cb5"> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> </line> <staticText> <reportElement x="110" y="10" width="267" height="20" uuid="a8848474-32e3-4db5-8d25-0c967661364a"/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="ipaex" size="19"/> </textElement> <text><![CDATA[GROUP1 HEADER!!!]]></text> </staticText> </band> </groupHeader> <groupFooter> <band height="50"> <staticText> <reportElement x="160" y="1" width="190" height="23" uuid="32e5c385-3249-44a4-85ad-957c1fe60345"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="ipaex" size="13"/> </textElement> <text><![CDATA[group1 footer]]></text> </staticText> <line> <reportElement x="3" y="0" width="1" height="34" uuid="4381d924-c611-4e68-8008-c902907278a0"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> </line> <line> <reportElement x="60" y="0" width="1" height="34" uuid="53d59ec4-3bca-4562-9c41-fdbfd86e5ef8"> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> </line> <line> <reportElement x="112" y="0" width="1" height="34" uuid="f1bca1d1-570f-4a89-80c8-79a7b151c684"> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> </line> <line> <reportElement x="362" y="0" width="1" height="34" uuid="a2914871-8329-4834-a683-b21472cdfb93"> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> </line> <line> <reportElement x="400" y="0" width="1" height="34" uuid="b2be6159-a568-4cdb-af85-25a6c5c41100"> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> </line> <line> <reportElement x="464" y="0" width="1" height="34" uuid="2b745bf5-b773-4514-8d34-34933f0eda87"> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> </line> <line> <reportElement x="531" y="0" width="1" height="34" uuid="ffe759fe-3361-4ad2-bc1c-17b9275a1089"> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> </line> <staticText> <reportElement x="468" y="10" width="60" height="9" uuid="fd297ca0-d129-4c8a-ac87-b8630d54940a"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="ipaex" size="9"/> </textElement> <text><![CDATA[grp1 footer]]></text> </staticText> </band> </groupFooter> </group> <group name="Group_no_expression" isStartNewPage="true" isReprintHeaderOnEachPage="true" keepTogether="true" preventOrphanFooter="true"/> <group name="Group_t_cd_seikyu" isReprintHeaderOnEachPage="true" keepTogether="true" preventOrphanFooter="true"> <groupExpression><![CDATA[$F{t_cd_seikyu}]]></groupExpression> <groupHeader> <band height="14" splitType="Immediate"> <property name="com.jaspersoft.studio.unit.height" value="px"/> <line> <reportElement x="3" y="0" width="1" height="13" uuid="e9c6dc3d-9912-448c-9a85-54e0e8da0b6d"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.x" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> </line> <line> <reportElement x="3" y="13" width="529" height="1" uuid="9bf3fe98-dd8f-4c26-abe7-739f4df3f631"> <property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> </line> <line> <reportElement x="3" y="0" width="529" height="1" uuid="f93fb2fb-3129-468f-8447-d00b124fc486"> <property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> </line> <line> <reportElement x="531" y="0" width="1" height="13" uuid="dcd89803-86c7-46f4-9e5e-16fb5c67272d"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> </line> <line> <reportElement x="464" y="0" width="1" height="13" uuid="d4a0fb2b-a82f-4818-a870-1fe9047fcda3"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> </line> <line> <reportElement x="400" y="0" width="1" height="13" uuid="531f7038-38ef-4ede-a186-7912183c9178"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> </line> <line> <reportElement x="362" y="1" width="1" height="13" uuid="d015b05b-b9e6-43aa-9e6a-122bf02527c3"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> </line> <line> <reportElement x="112" y="0" width="1" height="13" uuid="ea58fe6e-275b-45d9-a698-3ff4ccf99351"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> </line> <line> <reportElement x="60" y="0" width="1" height="13" uuid="a515aa9e-52d2-45cd-89d6-7d2418ac4bdc"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> </line> <staticText> <reportElement x="130" y="1" width="181" height="12" uuid="d2c47055-4fea-429c-9d35-ea38c2af02c5"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <textElement textAlignment="Center"> <font size="8"/> </textElement> <text><![CDATA[GROUP 3 HEADER]]></text> </staticText> </band> </groupHeader> </group> <group name="Group_seikyu_dt"> <groupExpression><![CDATA[$F{seikyu_dt}]]></groupExpression> </group> <group name="Group_d_date"> <groupExpression><![CDATA[$F{d_date}]]></groupExpression> <groupFooter> <band height="13"> <property name="com.jaspersoft.studio.unit.height" value="px"/> <staticText> <reportElement x="115" y="2" width="60" height="9" uuid="2965f395-5dd2-4dd0-a5a1-d7e2b0455c46"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="ipaex" size="9"/> </textElement> <text><![CDATA[grp5 footer]]></text> </staticText> <line> <reportElement x="3" y="0" width="1" height="13" uuid="fb804c85-7563-40a3-8000-7a0defbc34c4"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> </reportElement> </line> <line> <reportElement x="60" y="0" width="1" height="13" uuid="ccaff97b-7081-4339-a47b-f87670a54d8b"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> </reportElement> </line> <line> <reportElement x="112" y="0" width="1" height="13" uuid="c8410f83-04e5-4f0a-a455-77bc036896a0"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> </reportElement> </line> <line> <reportElement x="362" y="0" width="1" height="13" uuid="8becd58c-1d39-4612-a15d-afeb22c29bae"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> </reportElement> </line> <line> <reportElement x="400" y="0" width="1" height="13" uuid="53b7e609-b573-44cb-8e00-5745552ee6f3"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> </reportElement> </line> <line> <reportElement x="464" y="0" width="1" height="13" uuid="1e16bbf0-04f9-48fe-af11-834bd872d316"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> </reportElement> </line> <line> <reportElement x="531" y="0" width="1" height="13" uuid="1fa461f2-9b77-43c3-9ba1-f9c0d83a3741"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> </reportElement> </line> <staticText> <reportElement x="468" y="2" width="60" height="9" uuid="e1b8ccd3-ac3c-4183-960e-6512322504b3"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="ipaex" size="9"/> </textElement> <text><![CDATA[grp5 footer]]></text> </staticText> </band> </groupFooter> </group> <group name="Group_d_no_nouhin"> <groupExpression><![CDATA[$F{d_no_nouhin}]]></groupExpression> </group> <background> <band height="776"> <line> <reportElement x="3" y="775" width="529" height="1" uuid="8749abf2-6019-4986-a142-9f0d5ad57237"> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> </line> <line> <reportElement x="3" y="251" width="1" height="524" uuid="5126ff81-c966-4efc-a1a1-161cffe08072"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.y" value="px"/> <property name="com.jaspersoft.studio.unit.x" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> </line> <line> <reportElement x="60" y="251" width="1" height="524" uuid="ff5bd535-fd69-40d6-bd94-42d6479fe84f"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.x" value="px"/> </reportElement> </line> <line> <reportElement x="112" y="251" width="1" height="524" uuid="21d933ec-2974-444a-9a17-cfbaa8fa5688"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.x" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> </line> <line> <reportElement x="362" y="251" width="1" height="524" uuid="3ad662b8-77be-45e4-b880-888abf296d33"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.x" value="px"/> </reportElement> </line> <line> <reportElement x="400" y="251" width="1" height="524" uuid="1699edfe-a293-472e-9543-1864052f5844"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.x" value="px"/> </reportElement> </line> <line> <reportElement x="464" y="251" width="1" height="524" uuid="40e2058d-c09a-4690-bd2a-590ad4dee27b"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.x" value="px"/> </reportElement> </line> <line> <reportElement x="531" y="251" width="1" height="524" uuid="fa5bcf48-8fec-4fe6-8686-31263882da49"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.y" value="px"/> <property name="com.jaspersoft.studio.unit.x" value="px"/> </reportElement> </line> <line> <reportElement x="3" y="0" width="1" height="251" uuid="8b41fb87-c19a-43cf-9959-0445c177b5ff"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.x" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> <printWhenExpression><![CDATA[$V{PAGE_NUMBER} >= 2]]></printWhenExpression> </reportElement> </line> <line> <reportElement x="60" y="0" width="1" height="251" uuid="f60ad881-182c-4cae-8f69-b96cb5227e34"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.x" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> <printWhenExpression><![CDATA[$V{PAGE_NUMBER} >= 2]]></printWhenExpression> </reportElement> </line> <line> <reportElement x="112" y="0" width="1" height="251" uuid="227fbeec-2f69-4c0e-95cf-716332cc2df3"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.x" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> <printWhenExpression><![CDATA[$V{PAGE_NUMBER} >= 2]]></printWhenExpression> </reportElement> </line> <line> <reportElement x="362" y="0" width="1" height="251" uuid="6837153a-77e0-4e53-a68b-fb4e571a215f"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.x" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> <printWhenExpression><![CDATA[new Boolean($V{PAGE_NUMBER} != 1)]]></printWhenExpression> </reportElement> </line> <line> <reportElement x="400" y="0" width="1" height="251" uuid="c57a3f87-ace9-4a9e-866d-e925fbb38852"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.y" value="px"/> <property name="com.jaspersoft.studio.unit.x" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> <printWhenExpression><![CDATA[new Boolean($V{PAGE_NUMBER} != 1)]]></printWhenExpression> </reportElement> </line> <line> <reportElement x="464" y="0" width="1" height="251" uuid="ca682718-ad20-42fc-a7c8-b8cbfd3a41b3"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.x" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> <printWhenExpression><![CDATA[new Boolean($V{PAGE_NUMBER} != 1)]]></printWhenExpression> </reportElement> </line> <line> <reportElement x="531" y="0" width="1" height="251" uuid="27cc87b1-0ea9-4f93-987b-7579fcf34864"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.x" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> <printWhenExpression><![CDATA[new Boolean($V{PAGE_NUMBER} != 1)]]></printWhenExpression> </reportElement> </line> </band> </background> <detail> <band height="13"> <property name="com.jaspersoft.studio.unit.height" value="px"/> <textField textAdjust="ScaleFont" pattern="yy/MM/dd"> <reportElement isPrintRepeatedValues="false" x="7" y="2" width="51" height="9" printWhenGroupChanges="Group_d_no_nouhin" uuid="a238976a-19b1-4207-9563-72b55c157d60"> <property name="com.jaspersoft.studio.spreadsheet.connectionID" value="ac9ea6ed-1070-476e-ad38-5db346975faf"/> </reportElement> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="ipaex" size="9"/> </textElement> <textFieldExpression><![CDATA[$F{d_date}]]></textFieldExpression> </textField> <textField textAdjust="ScaleFont"> <reportElement isPrintRepeatedValues="false" x="63" y="2" width="47" height="9" printWhenGroupChanges="Group_d_date" uuid="a4cc1680-85cf-4e04-bad2-6689f647de06"> <property name="com.jaspersoft.studio.spreadsheet.connectionID" value="adc123c2-6b4b-4911-9e6d-b956d2b26cd7"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="ipaex" size="9"/> </textElement> <textFieldExpression><![CDATA[$F{d_no_nouhin}]]></textFieldExpression> </textField> <line> <reportElement x="3" y="0" width="1" height="13" uuid="10616b2d-f00c-4bc0-b182-eae687def9e0"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.x" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> </line> <line> <reportElement x="531" y="0" width="1" height="13" uuid="9431d327-a171-4cf0-bd66-27d5e47a9f6a"> <property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> </line> <line> <reportElement x="464" y="0" width="1" height="13" uuid="e869ebd6-f21a-48d2-9d59-b96a4f29651a"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> </line> <line> <reportElement x="400" y="0" width="1" height="13" uuid="5ad17aa3-1e43-4b5b-a425-63683d744521"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> </line> <line> <reportElement x="362" y="0" width="1" height="13" uuid="62b848c4-cfcb-4b07-997c-df7635046c01"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> </line> <line> <reportElement x="112" y="0" width="1" height="13" uuid="1e52bac1-e9fd-4887-953e-fb26f33bd4a4"> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> </line> <line> <reportElement x="60" y="0" width="1" height="13" uuid="e9a43dff-9821-4478-b360-7adc3958ca5c"> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> </line> <textField textAdjust="ScaleFont" isBlankWhenNull="false"> <reportElement x="115" y="2" width="244" height="9" uuid="8edbaf4f-6ad4-4ed3-b268-e1f17cd61a94"> <property name="com.jaspersoft.studio.spreadsheet.connectionID" value="a949c3bb-e48e-4de5-afd8-4cb2ceeac4fc"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="ipaex" size="9"/> </textElement> <textFieldExpression><![CDATA[$F{s_name}]]></textFieldExpression> </textField> </band> </detail> </jasperReport>
Attachments:
Thank you for posting to the Jaspersoft Community. Our team of experts has read your question and we are working to get you an answer as quickly as we can. If you have a Jaspersoft Professional Subscription plan, please visit https://support.tibco.com/s/ for direct access to our technical support teams offering guaranteed response times.