title: How to split large frames
body: <p>I've a jasper-report that has a detail band with the height of 1500px. My page height is 842px. There is a frame with the height of 940px inside this band.
  Here is my jrxml-File:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="UTF-8" ?&gt;
  &lt;!-- Created with Jaspersoft Studio version 6.3.0.final using JasperReports Library version 6.3.0  --&gt;
  &lt;!-- 2016-08-04T11:33:30 --&gt;
  &lt;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="Template" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="fe0ec478-f3f0-4324-9feb-f143cc73c90f"&gt;
    &lt;property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record" /&gt;
    &lt;detail&gt;
      &lt;band height="1500" splitType="Stretch"&gt;
        &lt;frame&gt;
          &lt;reportElement positionType="Float" stretchType="RelativeToTallestObject" mode="Opaque" x="0" y="30" width="555" height="940" backcolor="#F5F9FF" uuid="917a9ec0-b801-49ca-93e7-5106f89868e9"&gt;
            &lt;property name="com.jaspersoft.studio.unit.width" value="pixel" /&gt;
          &lt;/reportElement&gt;
          &lt;box&gt;
            &lt;pen lineWidth="1.0" lineStyle="Solid" lineColor="#E3E3E3" /&gt;
          &lt;/box&gt;
        &lt;/frame&gt;
        &lt;staticText&gt;
          &lt;reportElement x="0" y="0" width="555" height="30" uuid="303bc3ed-22ad-4f01-a7d1-c35e8b95ac77" /&gt;
          &lt;text&gt;
            &lt;![CDATA[Static Text]]&gt;
          &lt;/text&gt;
        &lt;/staticText&gt;
      &lt;/band&gt;
    &lt;/detail&gt;
  &lt;/jasperReport&gt;
  </code></pre>
  
  <p>After compilation I get following error:</p>
  
  <pre><code>The detail section, the page and column headers and footers and the margins do not fit the page height. --- net.sf.jasperreports.engine.design.JasperDesign
  </code></pre>
  
  <p>My first question is: why do I get this exception?  </p>
  
  <p>If I change the Split Type of the detail band to "Immediate" then I do not get the above error any more. After a few minutes I get OutOfMemoryError.
  My third question: why do i get this error after changing the Split Type to "Immediate".  </p>
  
  <p>My third question is: how can i split my frame into 772px (after StaticText) and 168px on the top of the next page? I would like to display multiple Frames (with different heights; some of them very long) one after another.</p>