Skip to content

Commit

Permalink
Modify print and remove html format
Browse files Browse the repository at this point in the history
  • Loading branch information
mspasiano committed Jun 22, 2023
1 parent 58a641e commit 3682562
Showing 1 changed file with 24 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
~ Copyright (C) 2019 Consiglio Nazionale delle Ricerche
~ This program is free software: you can redistribute it and/or modify
~ it under the terms of the GNU Affero General Public License as
~ published by the Free Software Foundation, either version 3 of the
~ License, or (at your option) any later version.
~
~ This program is distributed in the hope that it will be useful,
~ but WITHOUT ANY WARRANTY; without even the implied warranty of
~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
~ GNU Affero General Public License for more details.
~
~ You should have received a copy of the GNU Affero General Public License
~ along with this program. If not, see <https://www.gnu.org/licenses/>.
-->

<!-- Created with Jaspersoft Studio version 6.15.0.final utlizzo versione della libreria JasperReports6.15.0-dd49bfb94918336b8321d5507193f0169ead4e95 -->
<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="detail" pageWidth="555" pageHeight="802" columnWidth="515" leftMargin="0" rightMargin="40" topMargin="0" bottomMargin="0" uuid="8acff40b-222d-47a0-96dc-3fbeb3121167">
<property name="ireport.zoom" value="1.5"/>
<property name="ireport.x" value="0"/>
Expand All @@ -23,12 +8,33 @@
<field name="second" class="java.lang.String"/>
<detail>
<band height="15" splitType="Prevent">
<printWhenExpression><![CDATA[$F{first} == null || $F{first}.length() == 0]]></printWhenExpression>
<textField textAdjust="StretchHeight">
<reportElement x="0" y="0" width="465" height="15" uuid="60d1c085-44eb-4166-90a7-0e3e4d641039"/>
<reportElement x="0" y="0" width="465" height="15" isRemoveLineWhenBlank="true" uuid="60d1c085-44eb-4166-90a7-0e3e4d641039"/>
<textElement markup="html">
<font fontName="Times New Roman"/>
</textElement>
<textFieldExpression><![CDATA[(($F{first} == null || $F{first}.length() == 0) ? "" : $F{first} + ($F{first}.lastIndexOf(":") != -1 || $F{first}.lastIndexOf("&nbsp;") != -1 ||$F{second} == null || $F{second}.length() == 0? "" : ": ")) + $F{second}]]></textFieldExpression>
<textFieldExpression><![CDATA[(($F{first} == null || $F{first}.length() == 0) ? "" : $F{first} + ($F{first}.lastIndexOf(":") != -1 || $F{first}.lastIndexOf("&nbsp;") != -1 ||$F{second} == null || $F{second}.length() == 0? "" : ": ")) + $F{second}]]></textFieldExpression>
</textField>
</band>
<band height="15" splitType="Prevent">
<printWhenExpression><![CDATA[$F{first} != null]]></printWhenExpression>
<textField textAdjust="StretchHeight">
<reportElement x="0" y="0" width="465" height="15" isRemoveLineWhenBlank="true" uuid="60d1c085-44eb-4166-90a7-0e3e4d641039"/>
<textElement markup="html">
<font fontName="Times New Roman" isBold="true"/>
</textElement>
<textFieldExpression><![CDATA[(($F{first} == null || $F{first}.length() == 0) ? "" : $F{first} + ($F{first}.lastIndexOf(":") != -1 || $F{first}.lastIndexOf("&nbsp;") != -1 ||$F{second} == null || $F{second}.length() == 0? "" : ""))]]></textFieldExpression>
</textField>
</band>
<band height="15" splitType="Prevent">
<printWhenExpression><![CDATA[$F{first} != null]]></printWhenExpression>
<textField textAdjust="StretchHeight">
<reportElement x="0" y="0" width="465" height="15" isRemoveLineWhenBlank="true" uuid="60d1c085-44eb-4166-90a7-0e3e4d641039"/>
<textElement>
<font fontName="Times New Roman"/>
</textElement>
<textFieldExpression><![CDATA[$F{second}]]></textFieldExpression>
</textField>
</band>
</detail>
Expand Down

0 comments on commit 3682562

Please sign in to comment.