title: Jasper Sub Report Sizing Issue
body: <p>Looking for the best way to solve my dilemma.  I am building a report and the data source that is being used is JSON &lt;- Not much experience with JSON.</p>
  <p>This is how data looks coming across to me via JSON</p>
  <pre><code>Parent
      Child
          Child (NEED SOME FIELDS HERE FOR HEADER)
               FINAL CHILD (Need Fields In Here) (Setup as array bc multiple of Final Child)
               FINAL CHILD
               FINAL CHILD and so on (FINAL CHILD will be repeating in the Detail section.)
                 ALSO FINAL CHILD IS SETUP IN ARRAY FOR EACH FINAL CHILD
  </code></pre>
  <p>Currently, I have built a master and subreport.  I do not need to pass any data because of the parent only has children... but could not get it working where the detail section of the master report would cycle through all the Final Children.</p>
  <p>Master Report PreView:
  <a href="https://i.stack.imgur.com/gQawP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gQawP.png" alt="Master Report Preview" /></a>
  SubReport PreView:
  <a href="https://i.stack.imgur.com/So0C2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/So0C2.png" alt="SubReport Preview" /></a>
  No matter what I do to the sizing, I cannot get it to shrink down in size and compactness...</p>
  <p>Master Report Code</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;!-- Created with Jaspersoft Studio version 6.4.0.final using JasperReports Library version 6.4.1  --&gt;
  &lt;jasperReport xmlns=&quot;http://jasperreports.sourceforge.net/jasperreports&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd&quot; name=&quot;Test4BD&quot; pageWidth=&quot;595&quot; pageHeight=&quot;842&quot; columnWidth=&quot;555&quot; leftMargin=&quot;20&quot; rightMargin=&quot;20&quot; topMargin=&quot;20&quot; bottomMargin=&quot;20&quot; uuid=&quot;65794bef-41ec-4ebe-9237-6c5db5cb403c&quot;&gt;
      &lt;property name=&quot;com.jaspersoft.studio.data.defaultdataadapter&quot; value=&quot;BD JSON Data Adapter&quot;/&gt;
      &lt;queryString language=&quot;json&quot;&gt;
          &lt;![CDATA[tXML.Message.InboundReportXML.MESSAGEDATA.ASNDATA.INBOUNDHEADER]]&gt;
      &lt;/queryString&gt;
      &lt;field name=&quot;ASNID&quot; class=&quot;java.lang.String&quot;&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[ASNID]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;ASN&quot; class=&quot;java.lang.String&quot;&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[ASN]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;background&gt;
          &lt;band splitType=&quot;Stretch&quot;/&gt;
      &lt;/background&gt;
      &lt;title&gt;
          &lt;band height=&quot;7&quot; splitType=&quot;Stretch&quot;/&gt;
      &lt;/title&gt;
      &lt;pageHeader&gt;
          &lt;band height=&quot;14&quot; splitType=&quot;Stretch&quot;/&gt;
      &lt;/pageHeader&gt;
      &lt;columnHeader&gt;
          &lt;band height=&quot;62&quot; splitType=&quot;Stretch&quot;&gt;
              &lt;textField&gt;
                  &lt;reportElement x=&quot;70&quot; y=&quot;0&quot; width=&quot;100&quot; height=&quot;30&quot; uuid=&quot;0f247a53-6ea3-462d-a655-0e3f02f2b611&quot;/&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{ASNID}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField&gt;
                  &lt;reportElement x=&quot;330&quot; y=&quot;0&quot; width=&quot;100&quot; height=&quot;30&quot; uuid=&quot;2c72da14-4800-4d2c-af67-58d27232133d&quot;/&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{ASN}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
          &lt;/band&gt;
      &lt;/columnHeader&gt;
      &lt;detail&gt;
          &lt;band height=&quot;75&quot; splitType=&quot;Stretch&quot;&gt;
              &lt;subreport&gt;
                  &lt;reportElement x=&quot;40&quot; y=&quot;0&quot; width=&quot;460&quot; height=&quot;70&quot; uuid=&quot;684434fc-a528-4e65-b7e8-6192048ae611&quot;/&gt;
                  &lt;parametersMapExpression&gt;&lt;![CDATA[$P{REPORT_PARAMETERS_MAP}]]&gt;&lt;/parametersMapExpression&gt;
                  &lt;subreportExpression&gt;&lt;![CDATA[&quot;SubReport2.jasper&quot;]]&gt;&lt;/subreportExpression&gt;
              &lt;/subreport&gt;
          &lt;/band&gt;
      &lt;/detail&gt;
      &lt;columnFooter&gt;
          &lt;band height=&quot;45&quot; splitType=&quot;Stretch&quot;/&gt;
      &lt;/columnFooter&gt;
      &lt;pageFooter&gt;
          &lt;band height=&quot;54&quot; splitType=&quot;Stretch&quot;/&gt;
      &lt;/pageFooter&gt;
      &lt;summary&gt;
          &lt;band height=&quot;42&quot; splitType=&quot;Stretch&quot;/&gt;
      &lt;/summary&gt;
  &lt;/jasperReport&gt;
  </code></pre>
  <p>SubReport:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;!-- Created with Jaspersoft Studio version 6.4.0.final using JasperReports Library version 6.4.1  --&gt;
  &lt;jasperReport xmlns=&quot;http://jasperreports.sourceforge.net/jasperreports&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd&quot; name=&quot;SubReport2&quot; pageWidth=&quot;595&quot; pageHeight=&quot;842&quot; whenNoDataType=&quot;AllSectionsNoDetail&quot; columnWidth=&quot;555&quot; leftMargin=&quot;20&quot; rightMargin=&quot;20&quot; topMargin=&quot;20&quot; bottomMargin=&quot;20&quot; uuid=&quot;2d15bbaf-6da1-4158-83b1-6a069fa6144b&quot;&gt;
      &lt;property name=&quot;com.jaspersoft.studio.data.defaultdataadapter&quot; value=&quot;BD JSON Data Adapter&quot;/&gt;
      &lt;queryString language=&quot;json&quot;&gt;
          &lt;![CDATA[tXML.Message.InboundReportXML.MESSAGEDATA.ASNDATA.INBOUNDHEADER.INBOUNDDETAILS]]&gt;
      &lt;/queryString&gt;
      &lt;field name=&quot;ASNDETAILID&quot; class=&quot;java.lang.String&quot;&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[ASNDETAILID]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;field name=&quot;LINENBR&quot; class=&quot;java.lang.String&quot;&gt;
          &lt;fieldDescription&gt;&lt;![CDATA[LINENBR]]&gt;&lt;/fieldDescription&gt;
      &lt;/field&gt;
      &lt;background&gt;
          &lt;band splitType=&quot;Stretch&quot;/&gt;
      &lt;/background&gt;
      &lt;title&gt;
          &lt;band height=&quot;8&quot; splitType=&quot;Stretch&quot;/&gt;
      &lt;/title&gt;
      &lt;pageHeader&gt;
          &lt;band height=&quot;9&quot; splitType=&quot;Stretch&quot;/&gt;
      &lt;/pageHeader&gt;
      &lt;columnHeader&gt;
          &lt;band height=&quot;32&quot; splitType=&quot;Stretch&quot;&gt;
              &lt;staticText&gt;
                  &lt;reportElement x=&quot;84&quot; y=&quot;0&quot; width=&quot;100&quot; height=&quot;30&quot; uuid=&quot;3b17e526-5b45-45db-b75f-4a86a1608bec&quot;/&gt;
                  &lt;text&gt;&lt;![CDATA[ASNDETAILID]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
              &lt;staticText&gt;
                  &lt;reportElement x=&quot;310&quot; y=&quot;0&quot; width=&quot;100&quot; height=&quot;30&quot; uuid=&quot;cd6e9ad5-60a5-4041-894d-970faa1d4bd5&quot;/&gt;
                  &lt;text&gt;&lt;![CDATA[LINENBR]]&gt;&lt;/text&gt;
              &lt;/staticText&gt;
          &lt;/band&gt;
      &lt;/columnHeader&gt;
      &lt;detail&gt;
          &lt;band height=&quot;33&quot; splitType=&quot;Stretch&quot;&gt;
              &lt;textField&gt;
                  &lt;reportElement x=&quot;70&quot; y=&quot;0&quot; width=&quot;100&quot; height=&quot;30&quot; uuid=&quot;e8036cc3-bddc-47d7-9686-bbea50bc7f1c&quot;/&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{ASNDETAILID}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
              &lt;textField&gt;
                  &lt;reportElement x=&quot;210&quot; y=&quot;0&quot; width=&quot;100&quot; height=&quot;30&quot; uuid=&quot;5f3a97c2-6f8e-4458-8f9e-c13890a6b308&quot;/&gt;
                  &lt;textFieldExpression&gt;&lt;![CDATA[$F{LINENBR}]]&gt;&lt;/textFieldExpression&gt;
              &lt;/textField&gt;
          &lt;/band&gt;
      &lt;/detail&gt;
      &lt;columnFooter&gt;
          &lt;band height=&quot;10&quot; splitType=&quot;Stretch&quot;/&gt;
      &lt;/columnFooter&gt;
      &lt;pageFooter&gt;
          &lt;band height=&quot;7&quot; splitType=&quot;Stretch&quot;/&gt;
      &lt;/pageFooter&gt;
      &lt;summary&gt;
          &lt;band height=&quot;8&quot; splitType=&quot;Stretch&quot;/&gt;
      &lt;/summary&gt;
  &lt;/jasperReport&gt;
  </code></pre>
  <p>I am open to all suggestions... again, very little experience with JSON and Jasper... especially around subreports... I was hoping I would not even need a subreport.</p>