2016-04-21 65 views
1

我正在使用iReport 4.7.1,我有一個主報告和2個子報表(一個在標題區域,另一個在詳細區域)。爲什麼子報表不能拆分?

第二個子報表比第一個頁面長,所以我想分割它以便在下一頁中有一部分文本。 I set:

  • every band splitType =「stretch」;
  • 所有子報表組件需要位置類型=相對於頂部的修復;
  • 子報表的每個組件Stretch Type = No stretch;
  • 所有子報告忽略分頁= false;

問題是子報表總是打印在下一頁,其中所有報表都可以填充整個頁面。 我也嘗試過很多這些屬性的其他組合,但沒有成功。

主要報告:

<?xml version="1.0" encoding="UTF-8"?> 
<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="ConsensoLR" pageWidth="595" pageHeight="750" columnWidth="555" leftMargin="9" rightMargin="20" topMargin="14" bottomMargin="14" uuid="8be2069c-89a5-4e39-942c-f679c2f3a6ba"> 
    <property name="ireport.zoom" value="0.75"/> 
    <property name="ireport.x" value="0"/> 
    <property name="ireport.y" value="0"/> 
    <property name="ireport.scriptlethandling" value="0"/> 
    <property name="ireport.encoding" value="UTF-8"/> 
    <import value="net.sf.jasperreports.engine.*"/> 
    <import value="java.util.*"/> 
    <import value="net.sf.jasperreports.engine.data.*"/> 
    <group name="PATENTE" minHeightToStartNewPage="500"> 
     <groupExpression><![CDATA[null]]></groupExpression> 
     <groupHeader> 
      <band height="17" splitType="Stretch"> 
       <subreport isUsingCache="true"> 
        <reportElement uuid="03d42b27-b701-48d0-97a4-544d270e9009" key="subreport-1" positionType="Float" isPrintRepeatedValues="false" x="8" y="0" width="556" height="17" isPrintWhenDetailOverflows="true"/> 
        <parametersMapExpression><![CDATA[$P{REPORT_PARAMETERS_MAP}]]></parametersMapExpression> 
        <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.JREmptyDataSource()]]></dataSourceExpression> 
        <subreportExpression><![CDATA["../../forms/Consensi/HeaderConsensiCardiologia.jasper"]]></subreportExpression> 
       </subreport> 
      </band> 
     </groupHeader> 
     <groupFooter> 
      <band splitType="Stretch"/> 
     </groupFooter> 
    </group> 
    <group name="PATENTE1"> 
     <groupExpression><![CDATA[null]]></groupExpression> 
     <groupFooter> 
      <band splitType="Stretch"/> 
     </groupFooter> 
    </group> 
    <background> 
     <band splitType="Stretch"/> 
    </background> 
    <title> 
     <band splitType="Stretch"/> 
    </title> 
    <pageHeader> 
     <band splitType="Stretch"/> 
    </pageHeader> 
    <columnHeader> 
     <band splitType="Stretch"/> 
    </columnHeader> 
    <detail> 
     <band height="24" splitType="Stretch"> 
      <subreport isUsingCache="true"> 
       <reportElement uuid="f0cc7497-4bcb-4acb-971b-89a08054b5fc" key="subreport-1" isPrintRepeatedValues="false" x="7" y="0" width="559" height="17" isPrintWhenDetailOverflows="true"/> 
       <parametersMapExpression><![CDATA[$P{REPORT_PARAMETERS_MAP}]]></parametersMapExpression> 
       <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.JREmptyDataSource()]]></dataSourceExpression> 
       <subreportExpression><![CDATA["../../forms/Consensi/LR_Info.jasper"]]></subreportExpression> 
      </subreport> 
     </band> 
    </detail> 
    <columnFooter> 
     <band splitType="Stretch"/> 
    </columnFooter> 
    <summary> 
     <band splitType="Stretch"/> 
    </summary> 
</jasperReport> 

子報表:

<?xml version="1.0" encoding="UTF-8"?> 
<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="LR_Info" pageWidth="595" pageHeight="750" columnWidth="595" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" uuid="5851263f-4063-4a4e-b915-ce1fac591369"> 
    <property name="ireport.scriptlethandling" value="0"/> 
    <property name="ireport.encoding" value="UTF-8"/> 
    <property name="ireport.zoom" value="1.0"/> 
    <property name="ireport.x" value="0"/> 
    <property name="ireport.y" value="187"/> 
    <import value="net.sf.jasperreports.engine.*"/> 
    <import value="java.util.*"/> 
    <import value="net.sf.jasperreports.engine.data.*"/> 
    <parameter name="PAT_NAME" class="java.lang.String"/> 
    <parameter name="PAT_PRENAME" class="java.lang.String"/> 
    <parameter name="TxtClinicalSit" class="java.lang.String"/> 
    <parameter name="ChxLanguageIt" class="java.lang.String"/> 
    <parameter name="ChxLanguageOth" class="java.lang.String"/> 
    <parameter name="ChxNationalityIt" class="java.lang.String"/> 
    <parameter name="ChxNationalityOth" class="java.lang.String"/> 
    <parameter name="TxtNationalityOth" class="java.lang.String"/> 
    <parameter name="TxtLanguageOth" class="java.lang.String"/> 
    <parameter name="TxtDoctor" class="java.lang.String"/> 
    <parameter name="TxtSpiegazione" class="java.lang.String"/> 
    <background> 
     <band splitType="Stretch"/> 
    </background> 
    <title> 
     <band splitType="Stretch"/> 
    </title> 
    <pageHeader> 
     <band splitType="Stretch"/> 
    </pageHeader> 
    <columnHeader> 
     <band splitType="Stretch"/> 
    </columnHeader> 
    <detail> 
     <band height="701" splitType="Stretch"> 
      <textField isStretchWithOverflow="true" isBlankWhenNull="false"> 
       <reportElement uuid="d9b4b7c5-b542-4691-8517-0e2ce00cddae" key="textField" x="113" y="10" width="130" height="19" isRemoveLineWhenBlank="true"/> 
       <box> 
        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
       </box> 
       <textElement textAlignment="Left" verticalAlignment="Top"> 
        <font fontName="Verdana" size="11" isBold="true" pdfFontName="Helvetica-Bold"/> 
       </textElement> 
       <textFieldExpression><![CDATA[$P{PAT_NAME}]]></textFieldExpression> 
      </textField> 
      <textField isStretchWithOverflow="true" isBlankWhenNull="false"> 
       <reportElement uuid="5b827833-697c-4c7e-9e2b-5c318013b4f2" key="textField" x="247" y="10" width="128" height="19" isRemoveLineWhenBlank="true"/> 
       <box> 
        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
       </box> 
       <textElement textAlignment="Left" verticalAlignment="Top"> 
        <font fontName="Verdana" size="11" isBold="true" pdfFontName="Helvetica-Bold"/> 
       </textElement> 
       <textFieldExpression><![CDATA[$P{PAT_PRENAME}]]></textFieldExpression> 
      </textField> 
      <staticText> 
       <reportElement uuid="2b1db4d3-c8d9-4880-a5c6-7515ea4f4bc6" key="staticText-25" x="9" y="10" width="100" height="19"/> 
       <box> 
        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
       </box> 
       <textElement textAlignment="Left" verticalAlignment="Top"> 
        <font fontName="Verdana" size="11"/> 
       </textElement> 
       <text><![CDATA[Io sottoscritto/a]]></text> 
      </staticText> 
      <staticText> 
       <reportElement uuid="4822a8bc-9f02-4d5c-a1d6-2aec989cbd71" key="staticText-26" x="381" y="10" width="62" height="19"/> 
       <box> 
        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
       </box> 
       <textElement textAlignment="Left" verticalAlignment="Top"> 
        <font fontName="Verdana" size="11"/> 
       </textElement> 
       <text><![CDATA[Nazionalià]]></text> 
      </staticText> 
      <staticText> 
       <reportElement uuid="93d5deb1-d7db-4654-943b-57305132cfaa" key="staticText-27" x="9" y="33" width="89" height="19"/> 
       <box> 
        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
       </box> 
       <textElement textAlignment="Left" verticalAlignment="Top"> 
        <font fontName="Verdana" size="11"/> 
       </textElement> 
       <text><![CDATA[Lingua parlata]]></text> 
      </staticText> 
      <staticText> 
       <reportElement uuid="5a97151a-5a41-426a-b513-2de3dfe4c3ed" key="staticText-28" x="247" y="33" width="305" height="19"/> 
       <box> 
        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
       </box> 
       <textElement textAlignment="Left" verticalAlignment="Top"> 
        <font fontName="Verdana" size="11"/> 
       </textElement> 
       <text><![CDATA[dichiaro di essere stato/a informato/a in modo ]]></text> 
      </staticText> 
      <textField> 
       <reportElement uuid="300703d9-eda6-432a-9404-c2d6df82ac4b" key="staticText-29" x="9" y="56" width="543" height="19"/> 
       <textElement textAlignment="Left" verticalAlignment="Top" markup="none"> 
        <font fontName="Verdana" size="11"/> 
       </textElement> 
       <textFieldExpression><![CDATA["comprensibile ed adeguato dal Dott." + $P{TxtDoctor} + " e di avere letto e compreso"]]></textFieldExpression> 
      </textField> 
      <staticText> 
       <reportElement uuid="fb8b979b-cb1a-4279-9392-cf71b07fbc91" key="staticText-30" x="9" y="79" width="543" height="19"/> 
       <box> 
        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
       </box> 
       <textElement textAlignment="Left" verticalAlignment="Top"> 
        <font fontName="Verdana" size="11"/> 
       </textElement> 
       <text><![CDATA[le informazioni scritte relative a:]]></text> 
      </staticText> 
      <staticText> 
       <reportElement uuid="1dfe9127-4ee7-4dd5-be63-4584de0ba11a" key="staticText-31" x="9" y="102" width="152" height="19"/> 
       <box> 
        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
       </box> 
       <textElement textAlignment="Left" verticalAlignment="Top"> 
        <font fontName="Verdana" size="10" isBold="true" pdfFontName="Helvetica-Bold"/> 
       </textElement> 
       <text><![CDATA[- la mia situazione attuale:]]></text> 
      </staticText> 
      <staticText> 
       <reportElement uuid="413ad418-7549-4318-acd7-bfcf333244e9" key="staticText-32" x="9" y="124" width="540" height="19"/> 
       <box> 
        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
       </box> 
       <textElement textAlignment="Left" verticalAlignment="Top"> 
        <font fontName="Verdana" size="10" isBold="true" pdfFontName="Helvetica-Bold"/> 
       </textElement> 
       <text><![CDATA[- il trattamento cardiologico consigliato per la guarigione o per migliorare la prognosi:]]></text> 
      </staticText> 
      <staticText> 
       <reportElement uuid="89259a96-d0e4-4884-9202-644054a7aeed" key="staticText-33" x="9" y="144" width="534" height="19"/> 
       <box> 
        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
       </box> 
       <textElement textAlignment="Left" verticalAlignment="Top"> 
        <font fontName="Verdana" size="10" isBold="true" isUnderline="true" pdfFontName="Helvetica-Bold"/> 
       </textElement> 
       <text><![CDATA[IMPIANTO DI LOOP RECORDER SOTTOCUTANEO:]]></text> 
      </staticText> 
      <staticText> 
       <reportElement uuid="93bc1c0a-92b1-4b74-a584-399a9c7050a1" key="staticText-34" x="9" y="158" width="537" height="86" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/> 
       <box> 
        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
       </box> 
       <textElement textAlignment="Justified" verticalAlignment="Top"> 
        <font fontName="Verdana" size="10" isBold="false" pdfFontName="Helvetica"/> 
        <paragraph lineSpacing="Single"/> 
       </textElement> 
       <text><![CDATA[la procedura, effettuata in anestesia locale previa somministrazione di un blando sedativo, prevede il confezionamento di una piccola tasca sottocutanea in regione pettorale, dove viene posizionato il dispositivo. Nella fase successiva si procede alla sutura della ferita. Durante l’intervento vengono costantemente monitorate le funzioni vitali (frequenza cardiaca, pressione arteriosa) ed è presente il personale medico ed infermieristico in grado di affrontare ogni situazione di urgenza o emergenza clinica.]]></text> 
      </staticText> 
      <staticText> 
       <reportElement uuid="b77f20ec-48c7-40bc-af49-96765f3e6903" key="staticText-37" x="9" y="244" width="540" height="24" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/> 
       <box> 
        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
       </box> 
       <textElement textAlignment="Left" verticalAlignment="Top"> 
        <font fontName="Verdana" size="10" isBold="true" pdfFontName="Helvetica-Bold"/> 
       </textElement> 
       <text><![CDATA[• le alternative diagnostiche, a sostanziale parità di efficacia, e le ragioni che motivano l’intervento:]]></text> 
      </staticText> 
      <staticText> 
       <reportElement uuid="538d282d-3adc-4bf9-aa16-ee389e529bf1" key="staticText-38" x="9" y="305" width="536" height="15"/> 
       <box> 
        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
       </box> 
       <textElement textAlignment="Left" verticalAlignment="Top"> 
        <font fontName="Verdana" size="10" isBold="true" pdfFontName="Helvetica-Bold"/> 
       </textElement> 
       <text><![CDATA[• le eventuali terapie da effettuare/sospendere prima dell’intervento consigliato: ]]></text> 
      </staticText> 
      <staticText> 
       <reportElement uuid="d5db8114-d2f2-4fb8-b13a-13b232aed45b" key="staticText-39" x="17" y="268" width="527" height="29" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/> 
       <box> 
        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
       </box> 
       <textElement textAlignment="Left" verticalAlignment="Top"> 
        <font fontName="Verdana" size="10" isUnderline="false"/> 
       </textElement> 
       <text><![CDATA[non esistono alternative diagnostiche in grado di monitorizzare il ritmo cardiaco per tempi prolungati ed in modo continuativo]]></text> 
      </staticText> 
      <staticText> 
       <reportElement uuid="c7e1d76f-2a0c-41ff-b00a-a1d431bad85e" key="staticText-40" x="18" y="319" width="526" height="39"/> 
       <box> 
        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
       </box> 
       <textElement textAlignment="Justified" verticalAlignment="Top"> 
        <font fontName="Verdana" size="10" isUnderline="false"/> 
       </textElement> 
       <text><![CDATA[▪ profilassi antibiotica per la prevenzione delle infezioni intraoperatorie 
▪ sospensione terapia anticoagulante per os e antiaggregante per ridurre il rischio di sanguinamento (salvo controindicazioni cliniche).]]></text> 
      </staticText> 
      <staticText> 
       <reportElement uuid="f5b92285-b9e7-4a72-abd9-c1d8f7c1b0ff" key="staticText-41" x="9" y="369" width="536" height="37"/> 
       <box> 
        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
       </box> 
       <textElement textAlignment="Justified" verticalAlignment="Top" markup="styled"> 
        <font fontName="Verdana" size="10"/> 
       </textElement> 
       <text><![CDATA[<style isBold="true">• i benefici attesi dall’intervento consigliato:</style> il dispositivo permette una registrazione continua del ritmo cardiaco e permette di diagnosticare o di escludere eventuali turbe del ritmo che potrebbero essere alla base degli episodi di perdita di coscienza da me accusati.]]></text> 
      </staticText> 
      <staticText> 
       <reportElement uuid="593a3df1-9ab7-487e-b7dd-153061602b4d" key="staticText-41" x="10" y="418" width="536" height="24" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/> 
       <box> 
        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
       </box> 
       <textElement textAlignment="Justified" verticalAlignment="Top" markup="styled"> 
        <font fontName="Verdana" size="10"/> 
       </textElement> 
       <text><![CDATA[<style isBold="true">• i disagi correlati all’intervento:</style> dovrò rimanere a letto nelle 12 ore successive all’intervento.]]></text> 
      </staticText> 
      <textField isStretchWithOverflow="true" isBlankWhenNull="false"> 
       <reportElement uuid="8106c5f9-ae6b-4252-87a3-9fe11e456002" key="textField-26" x="172" y="101" width="377" height="19"/> 
       <box> 
        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
       </box> 
       <textElement textAlignment="Left" verticalAlignment="Top"> 
        <font fontName="Verdana" size="11" isBold="false" pdfFontName="Helvetica-Bold"/> 
       </textElement> 
       <textFieldExpression><![CDATA[$P{TxtClinicalSit}]]></textFieldExpression> 
      </textField> 
      <textField isStretchWithOverflow="true" isBlankWhenNull="false"> 
       <reportElement uuid="48fa1de0-8e26-4edd-b5d6-bb5075da4e49" key="textField" mode="Transparent" x="454" y="10" width="98" height="19"> 
        <printWhenExpression><![CDATA[new Boolean ($P{ChxNationalityIt}.equals("true"))]]></printWhenExpression> 
       </reportElement> 
       <box> 
        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
       </box> 
       <textElement textAlignment="Left" verticalAlignment="Top"> 
        <font fontName="Verdana" size="11" isBold="true" pdfFontName="Helvetica-Bold"/> 
       </textElement> 
       <textFieldExpression><![CDATA["Italiana"]]></textFieldExpression> 
      </textField> 
      <textField isStretchWithOverflow="true" isBlankWhenNull="true"> 
       <reportElement uuid="2a290db1-3278-4285-a0e2-84552b111df0" key="textField" isPrintRepeatedValues="false" mode="Transparent" x="454" y="10" width="98" height="19"> 
        <printWhenExpression><![CDATA[new Boolean ($P{ChxNationalityOth}.equals("true"))]]></printWhenExpression> 
       </reportElement> 
       <box> 
        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
       </box> 
       <textElement textAlignment="Left" verticalAlignment="Top"> 
        <font fontName="Verdana" size="11" isBold="true" pdfFontName="Helvetica-Bold"/> 
       </textElement> 
       <textFieldExpression><![CDATA[$P{TxtNationalityOth}]]></textFieldExpression> 
      </textField> 
      <textField isStretchWithOverflow="true" isBlankWhenNull="true"> 
       <reportElement uuid="af9b0a17-0eb2-47ea-aa66-49e4b2252f37" key="textField" mode="Transparent" x="113" y="33" width="130" height="19"> 
        <printWhenExpression><![CDATA[new Boolean ($P{ChxLanguageOth}.equals("true"))]]></printWhenExpression> 
       </reportElement> 
       <box> 
        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
       </box> 
       <textElement textAlignment="Left" verticalAlignment="Top"> 
        <font fontName="Verdana" size="11" isBold="true" pdfFontName="Helvetica-Bold"/> 
       </textElement> 
       <textFieldExpression><![CDATA[$P{TxtLanguageOth}]]></textFieldExpression> 
      </textField> 
      <textField isStretchWithOverflow="true" isBlankWhenNull="false"> 
       <reportElement uuid="3339fbe6-5aa4-4516-a86d-3dfc15565bb8" key="textField" mode="Transparent" x="113" y="33" width="130" height="19"> 
        <printWhenExpression><![CDATA[new Boolean ($P{ChxLanguageIt}.equals("true"))]]></printWhenExpression> 
       </reportElement> 
       <box> 
        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
       </box> 
       <textElement textAlignment="Left" verticalAlignment="Top"> 
        <font fontName="Verdana" size="11" isBold="true" pdfFontName="Helvetica-Bold"/> 
       </textElement> 
       <textFieldExpression><![CDATA["Italiana"]]></textFieldExpression> 
      </textField> 
      <staticText> 
       <reportElement uuid="b9d31cde-d14e-4ed6-9635-80feb00e4595" key="staticText-41" x="8" y="451" width="536" height="49" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true"/> 
       <box> 
        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
       </box> 
       <textElement textAlignment="Justified" verticalAlignment="Top" markup="styled"> 
        <font fontName="Verdana" size="9"/> 
       </textElement> 
       <text><![CDATA[<style isBold="true">• i possibili rischi e complicanze connessi all’intervento consigliato</style>: alla procedura sono connesse alcune possibili complicanze: 
▪ Ematomi superficiali o in sede di tasca (1% dei casi) correlati al possibile sanguinamento della ferita 
▪ Infezione della tasca (0,2% dei casi) 
]]></text> 
      </staticText> 
      <staticText> 
       <reportElement uuid="7ebbff68-5f7d-48be-9b53-c4191a7f1e87" key="staticText-41" x="8" y="512" width="536" height="50"/> 
       <box> 
        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
       </box> 
       <textElement textAlignment="Justified" verticalAlignment="Top" markup="styled"> 
        <font fontName="Verdana" size="9"/> 
       </textElement> 
       <text><![CDATA[<style isBold="true">• la possibilità di dover modificare o ampliare l’intervento, così come già programmato e autorizzato, di fronte a situazioni impreviste e al momento difficilmente prevedibili</style>: 
come sede dell’impianto viene generalmente scelta la regione pettorale sinistra, ma in casi particolari (precedenti interventi chirurgici…) tale sede potrà essere elettivamente la destra.]]></text> 
      </staticText> 
      <staticText> 
       <reportElement uuid="b50f5f5b-5e2c-4992-b43c-d7842b890472" key="staticText-41" x="10" y="567" width="536" height="28"/> 
       <box> 
        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <leftPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <bottomPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
        <rightPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
       </box> 
       <textElement textAlignment="Justified" verticalAlignment="Top" markup="styled"> 
        <font fontName="Verdana" size="9"/> 
       </textElement> 
       <text><![CDATA[<style isBold="true">• le prevedibili conseguenze della 「non cura」</style>: la scelta di non sottopormi all’intervento implica la mancata diagnosi delle possibili cause aritmiche alla base dei sintomi da me accusati.]]></text> 
      </staticText> 
      <staticText> 
       <reportElement uuid="400b521d-53b9-4b1f-8513-ce8aecb3b28a" key="staticText-41" x="10" y="606" width="536" height="15"/> 
       <box> 
        <topPen lineWidth="0.0" lineStyle="Solid" lineColor="#000000"/> 
+0

我找到了一個可能的解決方案。我創建了多個細節樂隊,第一個細節樂隊太長了。 – rperro

回答

1

您的問題是,在報表的詳細信息帶具有HEIGHT = 「701」,這意味着它將從具有該空間的第一頁開始。

老實說,我不明白爲什麼你使用這些空數據源的子報表,試圖獲得固定的頁面佈局(他們有意義,如果你有一個子數據源)。

您應該還原爲僅使用主報告,您可以使用標題欄,細節欄,彙總欄和組樂隊創建固定頁面佈局。

+0

謝謝,我們傾向於使用子報表以便在不同的報表中重新使用它們。無論如何,我嘗試了你的建議,我也遇到了同樣的問題。我是否將文章發佈在細節帶或組頭中? – rperro

+0

嘗試爲子報告詳細信息段設置splitType =「立即」。 – dada67