drodriguez_4 Posted October 4, 2019 Share Posted October 4, 2019 Hello everyone.In a report I have two details bands, the first one is only printed on page 1 and the second one can be printed anywhere.The problem is that there is a page break between these bands and I don't want it, I'd like my second band to start right below the first one.Thank you in advance. Link to comment Share on other sites More sharing options...
C-Box Posted October 7, 2019 Share Posted October 7, 2019 Please post some jrxml snippets (or the whole jrxml) to see what causes that break... there are too many reasons, that can result in unwanted breaks.regardsC-Box Link to comment Share on other sites More sharing options...
drodriguez_4 Posted October 7, 2019 Author Share Posted October 7, 2019 Here is the whole jrxml : <?xml version="1.0" encoding="UTF-8"?><!-- Created with Jaspersoft Studio version 6.9.0.final using JasperReports Library version 6.9.0-cb8f9004be492ccc537180b49c026951f4220bf3 --><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="report_mic_template" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" isSummaryWithPageHeaderAndFooter="true" uuid="6bcca973-1f86-4e1a-9ae2-75d8168ea82a"> <property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/> <style name="Table_TH" mode="Opaque" backcolor="#C7C7C7"> <box> <pen lineWidth="0.5" lineColor="#000000"/> <topPen lineWidth="0.5" lineColor="#000000"/> <leftPen lineWidth="0.5" lineColor="#000000"/> <bottomPen lineWidth="0.5" lineColor="#000000"/> <rightPen lineWidth="0.5" lineColor="#000000"/> </box> </style> <style name="Table_TD" mode="Opaque" backcolor="#FFFFFF"> <box> <pen lineWidth="0.5" lineColor="#000000"/> <topPen lineWidth="0.5" lineColor="#000000"/> <leftPen lineWidth="0.5" lineColor="#000000"/> <bottomPen lineWidth="0.5" lineColor="#000000"/> <rightPen lineWidth="0.5" lineColor="#000000"/> </box> </style> <style name="Table_CH" mode="Opaque" backcolor="rgba(207, 207, 207, 0.7254902)"> <box> <pen lineWidth="0.5" lineColor="#000000"/> <topPen lineWidth="0.5" lineColor="#000000"/> <leftPen lineWidth="0.5" lineColor="#000000"/> <bottomPen lineWidth="0.5" lineColor="#000000"/> <rightPen lineWidth="0.5" lineColor="#000000"/> </box> </style> <style name="Table 1_TH" mode="Opaque" backcolor="#F0F8FF"> <box> <pen lineWidth="0.5" lineColor="#000000"/> <topPen lineWidth="0.5" lineColor="#000000"/> <leftPen lineWidth="0.5" lineColor="#000000"/> <bottomPen lineWidth="0.5" lineColor="#000000"/> <rightPen lineWidth="0.5" lineColor="#000000"/> </box> </style> <style name="Table 1_CH" mode="Opaque" backcolor="rgba(207, 207, 207, 0.7254902)"> <box> <pen lineWidth="0.5" lineColor="#000000"/> <topPen lineWidth="0.5" lineColor="#000000"/> <leftPen lineWidth="0.5" lineColor="#000000"/> <bottomPen lineWidth="0.5" lineColor="#000000"/> <rightPen lineWidth="0.5" lineColor="#000000"/> </box> </style> <style name="Table 1_TD" mode="Opaque" backcolor="#FFFFFF"> <box> <pen lineWidth="0.5" lineColor="#000000"/> <topPen lineWidth="0.5" lineColor="#000000"/> <leftPen lineWidth="0.5" lineColor="#000000"/> <bottomPen lineWidth="0.5" lineColor="#000000"/> <rightPen lineWidth="0.5" lineColor="#000000"/> </box> </style> <subDataset name="TaxonDatasetJasper" uuid="01b8184d-8fc0-4861-8512-59552697f441"> <property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/> <queryString> <![CDATA[]]> </queryString> <field name="taxonCode" class="java.lang.String"/> <field name="taxonName" class="java.lang.String"/> <field name="rootDrugFamilyName" class="java.lang.String"/> <field name="resistanceMechanismNumber" class="java.lang.String"/> <field name="resistanceMechanismName" class="java.lang.String"/> <field name="drugFamilySubFamilyName" class="java.lang.String"/> <field name="drugTestMnemoCode" class="java.lang.String"/> <field name="drugTestName" class="java.lang.String"/> <field name="min" class="java.lang.String"/> <field name="max" class="java.lang.String"/> <field name="extensionFlag" class="java.lang.String"/> <field name="micCompositionRefId" class="java.lang.String"/> <field name="refID" class="java.lang.String"/> <field name="type" class="java.lang.String"/> <field name="name" class="java.lang.String"/> <field name="author" class="java.lang.String"/> <field name="year" class="java.lang.String"/> <field name="bibliographicNumber" class="java.lang.String"/> <field name="internalReferenceSource" class="java.lang.String"/> <field name="relevantInfo" class="java.lang.String"/> <field name="weight" class="java.lang.String"/> <field name="validationDate" class="java.lang.String"/> </subDataset> <parameter name="micCompositionDataSource" class="net.sf.jasperreports.engine.data.JRBeanCollectionDataSource"/> <parameter name="ebxVersion" class="java.lang.String"/> <parameter name="kbVersion" class="java.lang.String"/> <parameter name="currentDate" class="java.lang.String"/> <parameter name="user" class="java.lang.String"/> <parameter name="userId" class="java.lang.String"/> <parameter name="numberRecord" class="java.lang.String"/> <parameter name="filterCriteria" class="java.lang.String"/> <parameter name="environmentName" class="java.lang.String"/> <queryString> <![CDATA[]]> </queryString> <field name="tableMic" class="java.util.List"/> <field name="tableReferences" class="java.util.List"/> <background> <band splitType="Stretch"/> </background> <pageHeader> <band height="55" splitType="Immediate"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> <textField> <reportElement x="200" y="0" width="170" height="50" uuid="8c55066a-adcc-471a-a247-5c24571b87cb"/> <box> <pen lineWidth="0.5"/> </box> <textElement> <font fontName="Calibri" size="10"/> </textElement> <textFieldExpression><![CDATA[" System Date: " +$P{currentDate}]]></textFieldExpression> </textField> <textField> <reportElement x="2" y="0" width="198" height="50" uuid="8a586ed1-014b-4df2-8050-ca51959b24e8"/> <box> <pen lineWidth="0.5"/> </box> <textElement textAlignment="Left" markup="styled"> <font fontName="Calibri" size="10" pdfEncoding=""/> </textElement> <textFieldExpression><![CDATA[" EBX Version : <style isBold='true'>"+ $P{ebxVersion} +"</style>n "+$P{environmentName}+"n" + " KB VERSION : "+ $P{kbVersion}]]></textFieldExpression> </textField> <textField> <reportElement x="370" y="0" width="186" height="50" uuid="fea9bf46-8b8f-438b-946e-8f511002a096"/> <box> <pen lineWidth="0.5"/> </box> <textElement> <font fontName="Calibri" size="10"/> </textElement> <textFieldExpression><![CDATA[" Report printed by " + $P{user} +" n (ID User " +$P{userId}+" )"]]></textFieldExpression> </textField> </band> </pageHeader> <detail> <band height="130" splitType="Immediate"> <property name="com.jaspersoft.studio.unit.height" value="px"/> <printWhenExpression><![CDATA[$V{PAGE_NUMBER}==1]]></printWhenExpression> <staticText> <reportElement x="0" y="45" width="555" height="20" isRemoveLineWhenBlank="true" uuid="2f67f5e5-97c2-4189-898d-625a91107501"> <printWhenExpression><![CDATA[$V{PAGE_NUMBER}==1]]></printWhenExpression> </reportElement> <textElement textAlignment="Center"> <font isBold="true"/> </textElement> <text><![CDATA[selection criteria]]></text> </staticText> <frame borderSplitType="NoBorders"> <reportElement mode="Transparent" x="160" y="70" width="250" height="38" isRemoveLineWhenBlank="true" uuid="f22d99b0-4753-44f2-a0e8-a7737e393e40"> <property name="com.jaspersoft.studio.unit.width" value="px"/> <property name="ShowOutOfBoundContent" value="false"/> <property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.VerticalRowLayout"/> <printWhenExpression><![CDATA[$V{REPORT_COUNT}==1]]></printWhenExpression> </reportElement> <box> <pen lineWidth="0.5" lineStyle="Solid"/> </box> <textField isStretchWithOverflow="true"> <reportElement positionType="Float" x="0" y="0" width="250" height="19" uuid="b050c635-2e4f-4abc-8396-0fa061ab66e0"/> <textElement textAlignment="Center"/> <textFieldExpression><![CDATA[$P{filterCriteria}]]></textFieldExpression> </textField> <textField> <reportElement key="" positionType="Float" x="0" y="19" width="250" height="19" uuid="a637dbeb-0290-440c-9d7a-81de19253eae"/> <box> <bottomPen lineWidth="0.5"/> </box> <textElement textAlignment="Center"> <font fontName="Calibri" size="10" isBold="true"/> </textElement> <textFieldExpression><![CDATA["Number of records : " + $P{numberRecord}]]></textFieldExpression> </textField> </frame> <staticText> <reportElement x="0" y="-1" width="555" height="20" isRemoveLineWhenBlank="true" forecolor="#000000" backcolor="#FFFFFF" uuid="0851c3ef-687d-4da9-bb1c-177a6669d2eb"> <printWhenExpression><![CDATA[$V{PAGE_NUMBER}==1]]></printWhenExpression> </reportElement> <textElement textAlignment="Center"> <font size="14" isBold="true"/> </textElement> <text><![CDATA[bIOMÉRIEUX]]></text> </staticText> <staticText> <reportElement x="0" y="24" width="555" height="20" isRemoveLineWhenBlank="true" forecolor="#0070C0" backcolor="#FFFFFF" uuid="26818b04-710a-4582-8b3f-787f087e2775"> <printWhenExpression><![CDATA[$V{PAGE_NUMBER}==1]]></printWhenExpression> </reportElement> <box> <pen lineColor="#020303"/> </box> <textElement textAlignment="Center"> <font size="14" isBold="true"/> </textElement> <text><![CDATA[list OF MIC COMPOSITION WITH JUSTIFICATION]]></text> </staticText> <break> <reportElement x="0" y="120" width="544" height="1" uuid="8b88b76f-9042-4f18-8be8-7a6b96302ba5"> <printWhenExpression><![CDATA[$V{PAGE_NUMBER}==1]]></printWhenExpression> </reportElement> </break> </band> <band height="155" splitType="Immediate"> <property name="com.jaspersoft.studio.unit.height" value="px"/> <componentElement> <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="3" y="76" width="552" height="60" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" uuid="31023c12-3efe-4ccd-a742-f223e6d768aa"> <property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.VerticalRowLayout"/> <property name="com.jaspersoft.studio.table.style.table_header" value="Table 1_TH"/> <property name="com.jaspersoft.studio.table.style.column_header" value="Table 1_CH"/> <property name="com.jaspersoft.studio.table.style.detail" value="Table 1_TD"/> <property name="com.jaspersoft.studio.unit.height" value="px"/> </reportElement> <jr:table xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd"> <datasetRun subDataset="TaxonDatasetJasper" uuid="7a53e467-3436-41eb-87ba-95c2bd48ad20"> <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{tableReferences})]]></dataSourceExpression> </datasetRun> <jr:column width="39" uuid="6d9bb92b-07a6-4e7b-8ef0-998d3e1e4a62"> <property name="com.jaspersoft.studio.components.table.model.column.name" value="Colonne1"/> <jr:columnHeader style="Table 1_CH" height="40" rowSpan="1"> <staticText> <reportElement x="0" y="0" width="39" height="40" uuid="7870da9b-f5c9-4a57-a438-23878b9dcc2b"/> <textElement textAlignment="Center"> <font fontName="Calibri" size="9" isBold="true"/> </textElement> <text><![CDATA[identifier]]></text> </staticText> </jr:columnHeader> <jr:detailCell style="Table 1_TD" height="20"> <textField isStretchWithOverflow="true"> <reportElement x="0" y="0" width="39" height="20" uuid="fafa37f7-3ebb-4ad8-8dc3-8ee3bc35e579"/> <textElement textAlignment="Center"> <font fontName="Calibri" size="9"/> </textElement> <textFieldExpression><![CDATA[$F{refID}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="61" uuid="beb02112-209b-4fd0-9aa9-0f6c6cbc99a2"> <property name="com.jaspersoft.studio.components.table.model.column.name" value="Colonne2"/> <jr:columnHeader style="Table 1_CH" height="40" rowSpan="1"> <staticText> <reportElement x="0" y="0" width="61" height="40" uuid="c6c5d028-2b25-4c88-ad0b-270f711c4c7f"/> <textElement textAlignment="Center"> <font fontName="Calibri" size="9" isBold="true"/> </textElement> <text><![CDATA[Type]]></text> </staticText> </jr:columnHeader> <jr:detailCell style="Table 1_TD" height="20"> <textField isStretchWithOverflow="true"> <reportElement x="0" y="0" width="61" height="20" uuid="acf85a29-9077-4366-b1aa-b5d03e14ecdb"/> <textElement textAlignment="Center"> <font fontName="Calibri" size="9"/> </textElement> <textFieldExpression><![CDATA[$F{type}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="50" uuid="05553616-c571-487a-b877-d31ec8cf037b"> <property name="com.jaspersoft.studio.components.table.model.column.name" value="Colonne3"/> <jr:columnHeader style="Table 1_CH" height="40" rowSpan="1"> <staticText> <reportElement x="0" y="0" width="50" height="40" uuid="515d5d42-daf7-450b-a2f0-bde8cb0b7c5e"/> <textElement textAlignment="Center"> <font fontName="Calibri" size="9" isBold="true"/> </textElement> <text><![CDATA[Name]]></text> </staticText> </jr:columnHeader> <jr:detailCell style="Table 1_TD" height="20"> <textField isStretchWithOverflow="true"> <reportElement x="0" y="0" width="50" height="20" uuid="7c683b1f-56e7-4727-9f51-cfc318390a3d"/> <textElement textAlignment="Center"> <font fontName="Calibri" size="9"/> </textElement> <textFieldExpression><![CDATA[$F{name}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="42" uuid="b613513f-6865-4ec7-ab13-7c3d49c2aa16"> <property name="com.jaspersoft.studio.components.table.model.column.name" value="Colonne4"/> <jr:columnHeader style="Table 1_CH" height="40" rowSpan="1"> <staticText> <reportElement x="0" y="0" width="42" height="40" uuid="192b85e5-035b-4e2b-b042-05d74fec83ac"/> <textElement textAlignment="Center"> <font fontName="Calibri" size="9" isBold="true"/> </textElement> <text><![CDATA[Author]]></text> </staticText> </jr:columnHeader> <jr:detailCell style="Table 1_TD" height="20"> <textField isStretchWithOverflow="true"> <reportElement x="0" y="0" width="42" height="20" uuid="754a3657-e0b1-4f4d-b705-05c8812f1360"/> <textElement textAlignment="Center"> <font fontName="Calibri" size="9"/> </textElement> <textFieldExpression><![CDATA[$F{author}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="39" uuid="75357e6a-ce56-4c82-9061-29e60549a030"> <property name="com.jaspersoft.studio.components.table.model.column.name" value="Colonne5"/> <jr:columnHeader style="Table 1_CH" height="40" rowSpan="1"> <staticText> <reportElement x="0" y="0" width="39" height="40" uuid="d12cbeeb-caf6-4c98-a5c5-99c2e5aa2622"/> <textElement textAlignment="Center"> <font fontName="Calibri" size="9" isBold="true"/> </textElement> <text><![CDATA[Year]]></text> </staticText> </jr:columnHeader> <jr:detailCell style="Table 1_TD" height="20"> <textField isStretchWithOverflow="true"> <reportElement x="0" y="0" width="39" height="20" uuid="673064d4-ea42-4e09-b2d1-8330da07d543"/> <textElement textAlignment="Center"> <font fontName="Calibri" size="9"/> </textElement> <textFieldExpression><![CDATA[$F{year}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="66" uuid="b5536c83-d8a0-45a3-83be-04762f9fecfb"> <property name="com.jaspersoft.studio.components.table.model.column.name" value="Colonne6"/> <jr:columnHeader style="Table 1_CH" height="40" rowSpan="1"> <staticText> <reportElement x="0" y="0" width="66" height="40" uuid="be7824d3-39cb-4de5-b07c-b308d34c6043"/> <textElement textAlignment="Center"> <font fontName="Calibri" size="9" isBold="true"/> </textElement> <text><![CDATA[bibliographic number]]></text> </staticText> </jr:columnHeader> <jr:detailCell style="Table 1_TD" height="20"> <textField isStretchWithOverflow="true"> <reportElement x="0" y="0" width="66" height="20" uuid="e98a9cf4-4361-4aee-8e2b-4e85ee33db49"/> <textElement textAlignment="Center"> <font fontName="Calibri" size="9"/> </textElement> <textFieldExpression><![CDATA[$F{bibliographicNumber}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="77" uuid="74db51ce-1a79-44ef-a6ef-0531af502201"> <property name="com.jaspersoft.studio.components.table.model.column.name" value="Colonne7"/> <jr:columnHeader style="Table 1_CH" height="40" rowSpan="1"> <staticText> <reportElement x="0" y="0" width="77" height="40" uuid="330ade18-ee51-4be6-854c-2d5fc250e935"/> <textElement textAlignment="Center"> <font fontName="Calibri" size="9" isBold="true"/> </textElement> <text><![CDATA[internal reference source]]></text> </staticText> </jr:columnHeader> <jr:detailCell style="Table 1_TD" height="20"> <textField isStretchWithOverflow="true"> <reportElement x="0" y="0" width="77" height="20" uuid="8fdc0859-929d-48ac-a0c6-31fa70f4e35f"/> <textElement textAlignment="Center"> <font fontName="Calibri" size="9"/> </textElement> <textFieldExpression><![CDATA[$F{internalReferenceSource}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="50" uuid="1e8a8cd0-fa95-448c-8b04-d287dd020ad0"> <property name="com.jaspersoft.studio.components.table.model.column.name" value="Colonne8"/> <jr:columnHeader style="Table 1_CH" height="40" rowSpan="1"> <staticText> <reportElement x="0" y="0" width="50" height="40" uuid="735666e5-58bd-452a-bf78-93ad78c407c9"/> <textElement textAlignment="Center"> <font fontName="Calibri" size="9" isBold="true"/> </textElement> <text><![CDATA[Relevant info]]></text> </staticText> </jr:columnHeader> <jr:detailCell style="Table 1_TD" height="20"> <textField isStretchWithOverflow="true"> <reportElement x="0" y="0" width="50" height="20" uuid="a710bd5f-8c56-4a7e-b4dd-129b5227677f"/> <textElement textAlignment="Center"> <font fontName="Calibri" size="9"/> </textElement> <textFieldExpression><![CDATA[$F{relevantInfo}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="42" uuid="9c3779c7-0edd-43b0-843d-e2168631151a"> <property name="com.jaspersoft.studio.components.table.model.column.name" value="Colonne9"/> <jr:columnHeader style="Table 1_CH" height="40" rowSpan="1"> <staticText> <reportElement x="0" y="0" width="42" height="40" uuid="c96155fb-7793-446b-ab91-c94c37816bec"/> <textElement textAlignment="Center"> <font fontName="Calibri" size="9" isBold="true"/> </textElement> <text><![CDATA[Weight]]></text> </staticText> </jr:columnHeader> <jr:detailCell style="Table 1_TD" height="20"> <textField isStretchWithOverflow="true"> <reportElement x="0" y="0" width="42" height="20" forecolor="#AD3632" uuid="70a81f83-c594-4481-a99f-147a1fc092eb"/> <textElement textAlignment="Center"> <font fontName="Calibri" size="9" isUnderline="true"/> </textElement> <textFieldExpression><![CDATA[$F{weight}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="86" uuid="0ec15344-ec82-4164-89c1-e6f362a59193"> <property name="com.jaspersoft.studio.components.table.model.column.name" value="Colonne10"/> <jr:columnHeader style="Table 1_CH" height="40" rowSpan="1"> <staticText> <reportElement x="0" y="0" width="86" height="40" uuid="28842db2-d9c4-43c8-8a12-6d14b0ac1e0c"/> <textElement textAlignment="Center"> <font isBold="true"/> </textElement> <text><![CDATA[Validation date]]></text> </staticText> </jr:columnHeader> <jr:detailCell style="Table 1_TD" height="20"> <textField isStretchWithOverflow="true"> <reportElement x="0" y="0" width="86" height="20" uuid="dd404613-a4d5-42b0-99ca-b15c1ea91cf5"/> <textElement textAlignment="Center"/> <textFieldExpression><![CDATA[$F{validationDate}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> </jr:table> </componentElement> <componentElement> <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="3" y="1" width="552" height="70" isRemoveLineWhenBlank="true" isPrintWhenDetailOverflows="true" uuid="3d78d8ef-621c-4987-9e90-003f9d26d6e1"> <property name="com.jaspersoft.studio.layout" value="com.jaspersoft.studio.editor.layout.VerticalRowLayout"/> <property name="com.jaspersoft.studio.table.style.table_header" value="Table_TH"/> <property name="com.jaspersoft.studio.table.style.column_header" value="Table_CH"/> <property name="com.jaspersoft.studio.table.style.detail" value="Table_TD"/> <property name="com.jaspersoft.studio.components.autoresize.proportional" value="true"/> </reportElement> <jr:table xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd"> <datasetRun subDataset="TaxonDatasetJasper" uuid="e95c629f-9602-4574-b5b1-29a204a4e998"> <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{tableMic})]]></dataSourceExpression> </datasetRun> <jr:column width="33" uuid="65cc1cf1-c347-42b6-8ec9-aa4048d712f1"> <property name="com.jaspersoft.studio.components.table.model.column.name" value="Colonne1"/> <jr:columnHeader style="Table_CH" height="40" rowSpan="1"> <staticText> <reportElement x="0" y="0" width="33" height="40" uuid="d9ad472b-5aaf-4bae-8160-073b73790c88"/> <textElement textAlignment="Center"> <font size="9" isBold="true"/> </textElement> <text><![CDATA[Taxon Code]]></text> </staticText> </jr:columnHeader> <jr:detailCell style="Table_TD" height="30"> <textField isStretchWithOverflow="true"> <reportElement positionType="Float" x="0" y="0" width="33" height="30" isPrintWhenDetailOverflows="true" forecolor="#009999" uuid="c1bbd74f-19b0-4918-8e74-ff326c817928"/> <textElement textAlignment="Center"> <font fontName="Calibri" size="9" isBold="true"/> </textElement> <textFieldExpression><![CDATA[$F{taxonCode}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="49" uuid="c2ad66e9-de90-43e8-9164-c3e497bfcca4"> <property name="com.jaspersoft.studio.components.table.model.column.name" value="Colonne2"/> <jr:columnHeader style="Table_CH" height="40" rowSpan="1"> <staticText> <reportElement x="0" y="0" width="49" height="40" uuid="3df4711d-aef1-4ac7-aa99-209cd45b5cea"/> <textElement textAlignment="Center"> <font size="9" isBold="true"/> </textElement> <text><![CDATA[Taxon Name]]></text> </staticText> </jr:columnHeader> <jr:detailCell style="Table_TD" height="30"> <textField isStretchWithOverflow="true"> <reportElement positionType="Float" x="0" y="0" width="49" height="30" isPrintWhenDetailOverflows="true" forecolor="#009999" uuid="4c83aa02-11c7-482e-b99a-54695ddfab7d"/> <textElement textAlignment="Center"> <font fontName="Calibri" size="9" isBold="true"/> </textElement> <textFieldExpression><![CDATA[$F{taxonName}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="60" uuid="6ed2278d-ee66-42c8-a183-8285458a1eaf"> <property name="com.jaspersoft.studio.components.table.model.column.name" value="Colonne3"/> <jr:columnHeader style="Table_CH" height="40" rowSpan="1"> <staticText> <reportElement x="0" y="0" width="60" height="40" uuid="465f85bf-b669-4b1d-9403-7993ca7f8b81"/> <textElement textAlignment="Center"> <font size="9" isBold="true"/> </textElement> <text><![CDATA[Root drug family name]]></text> </staticText> </jr:columnHeader> <jr:detailCell style="Table_TD" height="30"> <textField isStretchWithOverflow="true"> <reportElement positionType="Float" x="0" y="0" width="60" height="30" isPrintWhenDetailOverflows="true" forecolor="#0070C0" uuid="0d5e3be0-25f7-49cf-9785-82c582c48ff8"/> <textElement textAlignment="Center"> <font fontName="Calibri" size="9" isBold="true"/> </textElement> <textFieldExpression><![CDATA[$F{rootDrugFamilyName}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="57" uuid="77bd3454-8667-4362-98b8-d80056c45662"> <property name="com.jaspersoft.studio.components.table.model.column.name" value="Colonne4"/> <jr:columnHeader style="Table_CH" height="40" rowSpan="1"> <staticText> <reportElement x="0" y="0" width="57" height="40" uuid="c6a40dc2-ab98-4d5c-a931-a1501a9b2cff"/> <textElement textAlignment="Center"> <font size="9" isBold="true"/> </textElement> <text><![CDATA[Resistance mechanism number]]></text> </staticText> </jr:columnHeader> <jr:detailCell style="Table_TD" height="30"> <textField isStretchWithOverflow="true"> <reportElement positionType="Float" x="0" y="0" width="57" height="30" isPrintWhenDetailOverflows="true" forecolor="#0000FF" uuid="7ab93447-c879-4121-aea2-e7c9874613d6"/> <textElement textAlignment="Center"> <font fontName="Calibri" size="9" isBold="true"/> </textElement> <textFieldExpression><![CDATA[$F{resistanceMechanismNumber}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="76" uuid="a28db0ec-e94e-4f1b-92df-b5c9ba43bf85"> <property name="com.jaspersoft.studio.components.table.model.column.name" value="Colonne5"/> <jr:columnHeader style="Table_CH" height="40" rowSpan="1"> <staticText> <reportElement x="0" y="0" width="76" height="40" uuid="7af6d590-585b-43aa-9a36-7223386e32a9"/> <textElement textAlignment="Center"> <font size="9" isBold="true"/> </textElement> <text><![CDATA[Resistance mechanism Name]]></text> </staticText> </jr:columnHeader> <jr:detailCell style="Table_TD" height="30"> <textField isStretchWithOverflow="true"> <reportElement x="0" y="0" width="76" height="30" isPrintWhenDetailOverflows="true" forecolor="#0000FF" uuid="0b8476f1-d826-4032-931a-3e980ace2aaa"/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="Calibri" size="9" isBold="true"/> </textElement> <textFieldExpression><![CDATA[$F{resistanceMechanismName}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="60" uuid="957c25fd-d7c6-4f74-ac18-df025b11b570"> <property name="com.jaspersoft.studio.components.table.model.column.name" value="Colonne6"/> <jr:columnHeader style="Table_CH" height="40" rowSpan="1"> <staticText> <reportElement x="0" y="0" width="60" height="40" uuid="9fecedb8-2230-496d-9e91-4f6101fd28fa"/> <textElement textAlignment="Center"> <font size="9" isBold="true"/> </textElement> <text><![CDATA[Drug family/sub-family name]]></text> </staticText> </jr:columnHeader> <jr:detailCell style="Table_TD" height="30"> <textField isStretchWithOverflow="true"> <reportElement positionType="Float" x="0" y="0" width="60" height="30" isPrintWhenDetailOverflows="true" forecolor="#FF00FF" uuid="0d12829c-f66c-4856-9b30-cb402ce0300c"/> <textElement textAlignment="Center"> <font fontName="Calibri" size="9" isBold="true"/> </textElement> <textFieldExpression><![CDATA[$F{drugFamilySubFamilyName}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="49" uuid="505ca35f-6b34-4153-a745-3930c132b692"> <property name="com.jaspersoft.studio.components.table.model.column.name" value="Colonne7"/> <jr:columnHeader style="Table_CH" height="40" rowSpan="1"> <staticText> <reportElement x="0" y="0" width="49" height="40" uuid="62d4f589-7f3c-4a84-b756-9a1333074682"/> <textElement textAlignment="Center"> <font size="9" isBold="true"/> </textElement> <text><![CDATA[Drug/test mnemo code]]></text> </staticText> </jr:columnHeader> <jr:detailCell style="Table_TD" height="30"> <textField isStretchWithOverflow="true"> <reportElement positionType="Float" x="0" y="0" width="49" height="30" isPrintWhenDetailOverflows="true" forecolor="#FF00FF" uuid="0944d35b-8b7b-465d-ae07-a6d92506c410"/> <textElement textAlignment="Center"> <font fontName="Calibri" size="9" isBold="true"/> </textElement> <textFieldExpression><![CDATA[$F{drugTestMnemoCode}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="57" uuid="13f25bde-fdbb-4259-b7c9-8c4fae8af290"> <property name="com.jaspersoft.studio.components.table.model.column.name" value="Colonne8"/> <jr:columnHeader style="Table_CH" height="40" rowSpan="1"> <staticText> <reportElement x="0" y="0" width="57" height="40" uuid="24ee23eb-9e18-4f9d-97a9-0e02f5aa256c"/> <textElement textAlignment="Center"> <font size="9" isBold="true"/> </textElement> <text><![CDATA[Drug/test name]]></text> </staticText> </jr:columnHeader> <jr:detailCell style="Table_TD" height="30"> <textField isStretchWithOverflow="true"> <reportElement positionType="Float" x="0" y="0" width="57" height="30" isPrintWhenDetailOverflows="true" forecolor="#FF00FF" uuid="df2e8e24-4982-4680-9f8a-256b2d9466c7"/> <textElement textAlignment="Center"> <font fontName="Calibri" size="9" isBold="true"/> </textElement> <textFieldExpression><![CDATA[$F{drugTestName}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="26" uuid="b831610e-7d07-4a4e-ad35-b1167d1c6eeb"> <property name="com.jaspersoft.studio.components.table.model.column.name" value="Colonne9"/> <jr:columnHeader style="Table_CH" height="40" rowSpan="1"> <staticText> <reportElement x="0" y="0" width="26" height="40" uuid="0d2a00dd-6175-4300-8f9a-463cfe9e7a55"/> <textElement textAlignment="Center"> <font isBold="true"/> </textElement> <text><![CDATA[Min]]></text> </staticText> </jr:columnHeader> <jr:detailCell style="Table_TD" height="30"> <textField isStretchWithOverflow="true"> <reportElement positionType="Float" x="0" y="0" width="26" height="30" isPrintWhenDetailOverflows="true" uuid="ca452f69-d7d9-44a2-a828-36ee6f199ed9"/> <textElement textAlignment="Center"> <font isBold="true"/> </textElement> <textFieldExpression><![CDATA[$F{min}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="33" uuid="2d303b34-4a5c-435d-be21-d9102f11ced2"> <property name="com.jaspersoft.studio.components.table.model.column.name" value="Colonne10"/> <jr:columnHeader style="Table_CH" height="40" rowSpan="1"> <staticText> <reportElement x="0" y="0" width="33" height="40" uuid="feaa643a-b8e0-4b5a-80e0-d449229701d8"/> <textElement textAlignment="Center"> <font isBold="true"/> </textElement> <text><![CDATA[Max]]></text> </staticText> </jr:columnHeader> <jr:detailCell style="Table_TD" height="30"> <textField isStretchWithOverflow="true"> <reportElement positionType="Float" x="0" y="0" width="33" height="30" isPrintWhenDetailOverflows="true" uuid="0596af3a-2411-477c-9dae-650ccc9bc75b"/> <textElement textAlignment="Center"> <font isBold="true"/> </textElement> <textFieldExpression><![CDATA[$F{max}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> <jr:column width="52" uuid="7f400670-6eab-4277-8ff4-c4f5705d5b44"> <property name="com.jaspersoft.studio.components.table.model.column.name" value="Colonne11"/> <jr:columnHeader style="Table_CH" height="40" rowSpan="1"> <staticText> <reportElement x="0" y="0" width="52" height="40" uuid="de334e43-9654-4936-b4e6-fd649b5e506e"/> <textElement textAlignment="Center"> <font isBold="true"/> </textElement> <text><![CDATA[Extension flag]]></text> </staticText> </jr:columnHeader> <jr:detailCell style="Table_TD" height="30"> <textField isStretchWithOverflow="true"> <reportElement positionType="Float" x="0" y="0" width="52" height="30" isPrintWhenDetailOverflows="true" uuid="59699961-1977-4d92-83b7-5f0f3528e5c7"/> <textElement textAlignment="Center"> <font isBold="true"/> </textElement> <textFieldExpression><![CDATA[$F{extensionFlag}]]></textFieldExpression> </textField> </jr:detailCell> </jr:column> </jr:table> </componentElement> <line> <reportElement positionType="Float" x="34" y="149" width="491" height="1" uuid="e0c4f27d-23c4-48ea-ad5e-9ac32ecea11c"/> <graphicElement> <pen lineStyle="Dashed"/> </graphicElement> </line> <line> <reportElement style="Table 1_TH" positionType="Float" x="34" y="146" width="491" height="1" uuid="75ded43a-7881-41e6-812a-80bc32ea577c"/> <graphicElement> <pen lineStyle="Dashed"/> </graphicElement> </line> </band> </detail> <pageFooter> <band height="21" splitType="Immediate"> <textField> <reportElement x="185" y="0" width="95" height="15" uuid="d3fbbbe9-d7a6-40a8-a613-5db72e73f316"> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> <textElement textAlignment="Right"/> <textFieldExpression><![CDATA["P a g e " + $V{PAGE_NUMBER}]]></textFieldExpression> </textField> <textField evaluationTime="Report"> <reportElement x="280" y="0" width="90" height="15" uuid="a8e9737a-083d-4d2d-bc6a-67863a2a7c25"> <property name="com.jaspersoft.studio.unit.width" value="px"/> </reportElement> <textElement textAlignment="Left"/> <textFieldExpression><![CDATA[" | " + $V{PAGE_NUMBER}]]></textFieldExpression> </textField> </band> </pageFooter></jasperReport>[/code] Thank you for your help Link to comment Share on other sites More sharing options...
Solution C-Box Posted October 7, 2019 Solution Share Posted October 7, 2019 But there is an page-break element in your first detail band (at y=120)? As you wrote "you don't want a page break between the bands", why did you placed a break element there?Additionally I would NOT advice using StretchType RelativeToTallestObject for both table elements? I can't imagine any wanted effect where both tables should stretch against the biggest one in the second detail!??! Or why did you adjust that?hth + regardsC-Box Link to comment Share on other sites More sharing options...
drodriguez_4 Posted October 8, 2019 Author Share Posted October 8, 2019 Yes sorry, I'm beginning with Jasper and I am not used to its specificities. Finally I removed one detail band, I reorganized the elements and I got what I wanted.I also used your advice and I don't use RelativeToTallestObject anymore.Thanks a lot for your help 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