Jump to content
We've recently updated our Privacy Statement, available here ×

manuela.texier

Members
  • Posts

    4
  • Joined

  • Last visited

manuela.texier's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Hello, You can find all details of my question in this link with details, images and template : https://stackoverflow.com/questions/60966631/how-to-remove-blank-lines-in-case-when-whenprintexpression-is-false Could you help me please? Thanks, Manuela
  2. Hello, I have several detail bands. Inside each detail band, I have several frames following each others. Inside each frame, there are other frames. Inside each frame, there are text-fields or list. My problem is that if the frame size exceeds a certain treshold, the frame get to a new page instead of filling the rest of previous page and finish on the new page. I tried to use: - float on all elements (frames and textfield) - isPrintWhenOverflow=true (frames and textfield) - stretch relative to tallest object ( frames and textfield) PROBLEM: the frame gets into a new page instead of being splitted into two if necessary <?xml version="1.0" encoding="UTF-8"?><!-- Created with Jaspersoft Studio version 6.6.0.final using JasperReports Library version 6.6.0 --><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="revueDeCompte" pageWidth="595" pageHeight="842" columnWidth="511" leftMargin="42" rightMargin="42" topMargin="20" bottomMargin="20" uuid="e40ca3dd-a126-4201-ba2e-02fad2685c5a"> <property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/> <property name="com.jaspersoft.studio.unit." value="pixel"/> <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"/> <subDataset name="entitesClientDetails" uuid="91ecac6c-7e05-4c60-83d2-9f0a910d5422"> <property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/> <queryString> <![CDATA[]]> </queryString> <field name="libelle" class="java.lang.String"/> </subDataset> <parameter name="logo" class="Object" isForPrompting="false"> <parameterDescription><![CDATA[Logo de la société]]></parameterDescription> </parameter> <queryString> <![CDATA[]]> </queryString> <field name="societeClientNom" class="java.lang.String"/> <field name="dateDuJour" class="java.time.LocalDate"/> <field name="typeRelationLibelle" class="java.lang.String"/> <field name="responsableTvNom" class="java.lang.String"/> <field name="groupeClientNom" class="java.lang.String"/> <field name="ficheSocieteClient" class="com.techvalley.rh.web.rest.dto.FicheSocieteClientDTO"/> <background> <band splitType="Stretch"/> </background> <title> <band height="79" splitType="Stretch"> <image> <reportElement x="0" y="16" width="210" height="60" uuid="d188f02d-fed0-4f09-91f0-07114a12d1f9"/> <imageExpression><![CDATA[$P{logo}]]></imageExpression> </image> </band> </title> <pageHeader> <band height="50"/> </pageHeader> <detail> <band height="429"> <frame> <reportElement positionType="Float" x="0" y="-29" width="510" height="449" uuid="383204e9-1293-411b-ac42-19e4d51da4c0"> <property name="ShowOutOfBoundContent" value="true"/> </reportElement> <textField isBlankWhenNull="true"> <reportElement positionType="Float" x="149" y="60" width="350" height="18" uuid="08e94364-9049-44c2-8e3e-f2015d9509a0"/> <textElement> <font size="12"/> </textElement> <textFieldExpression><![CDATA[$F{ficheSocieteClient}.getContratCadre()]]></textFieldExpression> </textField> <textField isBlankWhenNull="true"> <reportElement positionType="Float" x="149" y="40" width="350" height="18" uuid="a6cba220-031b-41b2-9905-3ca5594a20fc"/> <textElement> <font size="12"/> </textElement> <textFieldExpression><![CDATA[$F{ficheSocieteClient}.getFichierDescriptif()]]></textFieldExpression> </textField> <staticText> <reportElement positionType="Float" x="9" y="40" width="140" height="18" uuid="ea6c36c7-2809-43b5-92d5-9e1cc2ec8ed8"/> <textElement> <font size="12" isBold="false" isUnderline="false"/> </textElement> <text><![CDATA[Fichier descriptif :]]></text> </staticText> <staticText> <reportElement positionType="Float" x="9" y="60" width="140" height="18" uuid="be34b21f-3f3a-419a-9ee7-c1269c3840fd"/> <textElement> <font size="12" isBold="false" isUnderline="false"/> </textElement> <text><![CDATA[Contrat cadre :]]></text> </staticText> <textField isBlankWhenNull="true"> <reportElement positionType="Float" x="149" y="20" width="350" height="18" uuid="4316e7d8-fa9e-4031-824f-9a1aa50ef4b8"/> <textElement> <font size="12"/> </textElement> <textFieldExpression><![CDATA[$F{ficheSocieteClient}.getOngletGeneralite()]]></textFieldExpression> </textField> <staticText> <reportElement positionType="Float" x="9" y="20" width="140" height="18" uuid="11f34ffa-67ce-478c-a83b-2754378ce639"/> <textElement> <font size="12" isBold="false" isUnderline="false"/> </textElement> <text><![CDATA[Onglet généralité :]]></text> </staticText> <staticText> <reportElement positionType="Float" x="0" y="0" width="200" height="18" uuid="c2c2110a-03ff-4e25-b9c4-17ea00359987"/> <textElement> <font size="12" isBold="true" isUnderline="true"/> </textElement> <text><![CDATA[Fiche société client dans MTV : ]]></text> </staticText> <textField isBlankWhenNull="true"> <reportElement positionType="Float" x="149" y="80" width="350" height="18" uuid="bc0c4084-7620-426b-a673-073ba15c38eb"/> <textElement> <font size="12"/> </textElement> <textFieldExpression><![CDATA[$F{ficheSocieteClient}.getEntitesSociete().getLibelle()]]></textFieldExpression> </textField> <staticText> <reportElement positionType="Float" x="9" y="80" width="140" height="18" uuid="e79c01b2-c79a-4c79-9e81-83e8425ffba2"/> <textElement> <font size="12" isBold="false" isUnderline="false"/> </textElement> <text><![CDATA[Entités client :]]></text> </staticText> <componentElement> <reportElement positionType="Float" x="30" y="99" width="469" height="20" isRemoveLineWhenBlank="true" uuid="7d820112-95ca-4317-a852-3782907653ce"> <property name="net.sf.jasperreports.export.headertoolbar.table.name" value="entitesClientDetails"/> <printWhenExpression><![CDATA[$F{ficheSocieteClient}.getEntitesSociete().getLibelle().equals("OUI")]]></printWhenExpression> </reportElement> <jr:list xmlns:jr="http://jasperreports.sourceforge.net/jasperreports/components" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports/components http://jasperreports.sourceforge.net/xsd/components.xsd" printOrder="Horizontal"> <datasetRun subDataset="entitesClientDetails" uuid="c50846c4-165a-41fb-8bb3-bc5b829b5a62"> <dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{ficheSocieteClient}.getEntitesSociete().getDetails())]]></dataSourceExpression> </datasetRun> <jr:listContents height="30" width="120"> <textField> <reportElement x="0" y="0" width="120" height="20" isRemoveLineWhenBlank="true" uuid="60918955-16a1-43b4-adb2-0162854350b9"/> <textElement textAlignment="Left" verticalAlignment="Middle"/> <textFieldExpression><![CDATA[$F{libelle}]]></textFieldExpression> </textField> </jr:listContents> </jr:list> </componentElement> <frame> <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="0" y="120" width="510" height="320" isPrintWhenDetailOverflows="true" uuid="85d633f6-b7f5-419c-9237-99e0d16a1813"/> <frame> <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="9" y="20" width="490" height="290" isPrintWhenDetailOverflows="true" uuid="2e92f775-51fb-48b8-9d16-75ae290735b9"> <printWhenExpression><![CDATA[$F{ficheSocieteClient}.getDispositionsFacturation().getLibelle().equals("OUI")]]></printWhenExpression> </reportElement> <staticText> <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="21" y="1" width="130" height="18" isPrintWhenDetailOverflows="true" uuid="d3f6b91e-60e4-464b-b6a3-5576e6c29aa5"/> <textElement> <font size="10" isBold="false" isUnderline="false"/> </textElement> <text><![CDATA[TVA :]]></text> </staticText> <textField isBlankWhenNull="true"> <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="151" y="1" width="329" height="18" isPrintWhenDetailOverflows="true" uuid="e1b78183-09bf-4d07-9496-aeffacd1f4a1"/> <textElement> <font size="10"/> </textElement> <textFieldExpression><![CDATA[$F{ficheSocieteClient}.getDispositionsFacturation().getTva()]]></textFieldExpression> </textField> <staticText> <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="21" y="21" width="130" height="18" isPrintWhenDetailOverflows="true" uuid="8e4ec550-2ec5-47ec-963c-9b10bc70fbb7"/> <textElement> <font size="10" isBold="false" isUnderline="false"/> </textElement> <text><![CDATA[Numéro comptable :]]></text> </staticText> <textField isBlankWhenNull="true"> <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="151" y="21" width="329" height="18" isPrintWhenDetailOverflows="true" uuid="a112818a-18ee-41fb-8397-631932d51d58"/> <textElement> <font size="10"/> </textElement> <textFieldExpression><![CDATA[$F{ficheSocieteClient}.getDispositionsFacturation().getNumeroComptable()]]></textFieldExpression> </textField> <textField isBlankWhenNull="true"> <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="151" y="41" width="329" height="18" isPrintWhenDetailOverflows="true" uuid="56475048-7c27-43c9-a654-b76c6a9dc029"/> <textElement> <font size="10"/> </textElement> <textFieldExpression><![CDATA[$F{ficheSocieteClient}.getDispositionsFacturation().getDelaiReglement()]]></textFieldExpression> </textField> <staticText> <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="21" y="41" width="130" height="18" isPrintWhenDetailOverflows="true" uuid="b67ab9e9-cc81-433f-929a-2e392bcde4d3"/> <textElement> <font size="10" isBold="false" isUnderline="false"/> </textElement> <text><![CDATA[Délai règlement :]]></text> </staticText> <staticText> <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="21" y="61" width="130" height="18" isPrintWhenDetailOverflows="true" uuid="3e8397df-e5f4-4c45-b5c1-42daf0870022"/> <textElement> <font size="10" isBold="false" isUnderline="false"/> </textElement> <text><![CDATA[Conditions règlement :]]></text> </staticText> <textField isBlankWhenNull="true"> <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="151" y="61" width="329" height="18" isPrintWhenDetailOverflows="true" uuid="a35c8f3e-1ca0-4870-bc11-9ebcd2d65f79"/> <textElement> <font size="10"/> </textElement> <textFieldExpression><![CDATA[$F{ficheSocieteClient}.getDispositionsFacturation().getConditionsReglement()]]></textFieldExpression> </textField> <textField isBlankWhenNull="true"> <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="151" y="81" width="329" height="18" isPrintWhenDetailOverflows="true" uuid="59cf8e86-08c0-4fda-b840-df6f8d5511d1"/> <textElement> <font size="10"/> </textElement> <textFieldExpression><![CDATA[$F{ficheSocieteClient}.getDispositionsFacturation().getTypeEnvoiFacture()]]></textFieldExpression> </textField> <staticText> <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="21" y="81" width="130" height="18" isPrintWhenDetailOverflows="true" uuid="33a2dfd8-cc23-44c6-8ec0-61e1291ba1a6"/> <textElement> <font size="10" isBold="false" isUnderline="false"/> </textElement> <text><![CDATA[Type envoi facture :]]></text> </staticText> <textField isBlankWhenNull="true"> <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="151" y="101" width="329" height="18" isPrintWhenDetailOverflows="true" uuid="7ed9420c-7138-432a-9306-32f9377b3c97"/> <textElement> <font size="10"/> </textElement> <textFieldExpression><![CDATA[$F{ficheSocieteClient}.getDispositionsFacturation().getAdresseFacturation()]]></textFieldExpression> </textField> <staticText> <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="21" y="101" width="130" height="18" isPrintWhenDetailOverflows="true" uuid="e6a9c21d-99bc-4612-80a9-e6bf36adcd4f"/> <textElement> <font size="10" isBold="false" isUnderline="false"/> </textElement> <text><![CDATA[Adresse facturation :]]></text> </staticText> <textField isBlankWhenNull="true"> <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="151" y="121" width="329" height="18" isPrintWhenDetailOverflows="true" uuid="61220668-8076-44ec-bb05-5adb5999e7f4"/> <textElement> <font size="10"/> </textElement> <textFieldExpression><![CDATA[$F{ficheSocieteClient}.getDispositionsFacturation().getMailsDestinatairesFacture()]]></textFieldExpression> </textField> <staticText> <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="21" y="121" width="130" height="18" isPrintWhenDetailOverflows="true" uuid="6b6340fc-4945-42e6-b346-082fd4ff7531"/> <textElement> <font size="10" isBold="false" isUnderline="false"/> </textElement> <text><![CDATA[Mails destinataires factures :]]></text> </staticText> <staticText> <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="21" y="141" width="130" height="18" isPrintWhenDetailOverflows="true" uuid="733ade52-47f2-407e-8a8b-52be42fa770f"/> <textElement> <font size="10" isBold="false" isUnderline="false"/> </textElement> <text><![CDATA[Mails copies factures :]]></text> </staticText> <textField isBlankWhenNull="true"> <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="151" y="141" width="329" height="18" isPrintWhenDetailOverflows="true" uuid="0db9d5aa-8950-41b5-9f57-17e48e6a9136"/> <textElement> <font size="10"/> </textElement> <textFieldExpression><![CDATA[$F{ficheSocieteClient}.getDispositionsFacturation().getMailsCopiesFacture()]]></textFieldExpression> </textField> <textField isBlankWhenNull="true"> <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="151" y="161" width="329" height="18" isPrintWhenDetailOverflows="true" uuid="f0baf755-ea17-4bfb-b403-4d739b2bc03b"/> <textElement> <font size="10"/> </textElement> <textFieldExpression><![CDATA[$F{ficheSocieteClient}.getDispositionsFacturation().getAdresseEnvoiCourrier()]]></textFieldExpression> </textField> <staticText> <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="21" y="161" width="130" height="18" isPrintWhenDetailOverflows="true" uuid="dba87515-ba2d-488a-bda7-e75148991e68"/> <textElement> <font size="10" isBold="false" isUnderline="false"/> </textElement> <text><![CDATA[Adresse envoi courrier :]]></text> </staticText> <staticText> <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="21" y="182" width="130" height="18" isPrintWhenDetailOverflows="true" uuid="b4cf1fbf-856c-47ff-9ea0-530b83d7050c"/> <textElement> <font size="10" isBold="false" isUnderline="false"/> </textElement> <text><![CDATA[Pièces factures :]]></text> </staticText> <textField isBlankWhenNull="true"> <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="151" y="182" width="329" height="18" isPrintWhenDetailOverflows="true" uuid="c31c39c0-580b-49bf-a9ba-390434bf31fa"/> <textElement> <font size="10"/> </textElement> <textFieldExpression><![CDATA[$F{ficheSocieteClient}.getDispositionsFacturation().getPieceFacture()]]></textFieldExpression> </textField> <textField isBlankWhenNull="true"> <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="151" y="202" width="329" height="18" isPrintWhenDetailOverflows="true" uuid="d302a34c-d642-49e5-b1b3-66e30c79f290"/> <textElement> <font size="10"/> </textElement> <textFieldExpression><![CDATA[$F{ficheSocieteClient}.getDispositionsFacturation().getTitreFacture()]]></textFieldExpression> </textField> <staticText> <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="21" y="202" width="130" height="18" isPrintWhenDetailOverflows="true" uuid="c525b020-8ecb-43fb-b3c1-a5c624314eda"/> <textElement> <font size="10" isBold="false" isUnderline="false"/> </textElement> <text><![CDATA[Titre facture :]]></text> </staticText> <textField isBlankWhenNull="true"> <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="151" y="222" width="329" height="18" isPrintWhenDetailOverflows="true" uuid="f7313824-5920-415b-9635-445db238b5eb"/> <textElement> <font size="10"/> </textElement> <textFieldExpression><![CDATA[$F{ficheSocieteClient}.getDispositionsFacturation().getCommentaireTvaFacture()]]></textFieldExpression> </textField> <staticText> <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="21" y="222" width="130" height="18" isPrintWhenDetailOverflows="true" uuid="b560dd08-484b-4862-9fb1-b501044d1a81"/> <textElement> <font size="10" isBold="false" isUnderline="false"/> </textElement> <text><![CDATA[Commentaire tva facture :]]></text> </staticText> <staticText> <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="21" y="242" width="130" height="18" isPrintWhenDetailOverflows="true" uuid="43acf14f-2a19-4270-b16b-e18a179219b1"/> <textElement> <font size="10" isBold="false" isUnderline="false"/> </textElement> <text><![CDATA[Référence contrat cadre :]]></text> </staticText> <textField isBlankWhenNull="true"> <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="151" y="242" width="329" height="18" isPrintWhenDetailOverflows="true" uuid="06ab8b01-a1bd-4da1-9e35-4766fa8ea7ab"/> <textElement> <font size="10"/> </textElement> <textFieldExpression><![CDATA[$F{ficheSocieteClient}.getDispositionsFacturation().getReferenceContratCadre()]]></textFieldExpression> </textField> <textField isBlankWhenNull="true"> <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="151" y="262" width="329" height="18" isPrintWhenDetailOverflows="true" uuid="8e6e5b99-f3d1-4d02-b38e-b5f2bca71f5f"/> <textElement> <font size="10"/> </textElement> <textFieldExpression><![CDATA[$F{ficheSocieteClient}.getDispositionsFacturation().getReferenceFournisseurTv()]]></textFieldExpression> </textField> <staticText> <reportElement positionType="Float" stretchType="RelativeToTallestObject" x="21" y="262" width="130" height="18" isPrintWhenDetailOverflows="true" uuid="b52b5aea-d60a-43b8-8c81-c2dcc746c7ca"/> <textElement> <font size="10" isBold="false" isUnderline="false"/> </textElement> <text><![CDATA[Référence fournisseur TV :]]></text> </staticText> </frame> <staticText> <reportElement positionType="Float" x="9" y="1" width="140" height="18" uuid="b7a68103-20e8-4b12-a743-06c8d71984c1"/> <textElement> <font size="12" isBold="false" isUnderline="false"/> </textElement> <text><![CDATA[Dispositions facturation :]]></text> </staticText> <textField isBlankWhenNull="true"> <reportElement positionType="Float" x="149" y="1" width="350" height="18" uuid="ee659fa5-7694-42f8-9f05-823d78ce77d6"/> <textElement> <font size="12"/> </textElement> <textFieldExpression><![CDATA[$F{ficheSocieteClient}.getDispositionsFacturation().getLibelle()]]></textFieldExpression> </textField> </frame> </frame> </band> </detail> <pageFooter> <band height="71"> <textField> <reportElement x="160" y="20" width="100" height="30" uuid="610924a5-4d05-4edc-bebf-a8abf14f274e"/> <textElement textAlignment="Right"/> <textFieldExpression><![CDATA["Page " + $V{PAGE_NUMBER}]]></textFieldExpression> </textField> <textField evaluationTime="Report"> <reportElement x="260" y="20" width="100" height="30" uuid="5acae58f-ec6d-4074-b37a-4a1f0853f30b"/> <textElement textAlignment="Left"/> <textFieldExpression><![CDATA[" of " + $V{PAGE_NUMBER}]]></textFieldExpression> </textField> </band> </pageFooter></jasperReport>Thanks[/code]
  3. Thanks for your answer. The problem was that my fields were touching "physically" each others. Now it works.
  4. Hello, The structure of my report is the following: Frame A Label TextField Frame B List Frame C Label TextField All frames are floating type. GOAL: I want to remove Frame B when an expression is true: $F{expression}.equals("YES") and that no blank line is left between frame A and frame C. PROBLEM: My issue is that Frame B does not appear, but a blank line is left. Could you help me please? Thanks, Manuela
×
×
  • Create New...