Есть библиотека JasperReports 5.2 (её кастомизировали и поэтому апгрейд сейчас затруднён).
Есть отчет
<?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="harmonization_of_ghost" language="groovy" pageWidth="842" pageHeight="595" orientation="Landscape" whenNoDataType="AllSectionsNoDetail" columnWidth="802" leftMargin="20" rightMargin="20" topMargin="30" bottomMargin="20" columnCount="1" printOrder="Vertical" whenResourceMissingType="Empty" uuid="1f07ae1c-f80e-4e4a-840a-e9062b5a418b"> <property name="ireport.zoom" value="1.9487171000000034"/> <property name="ireport.x" value="0"/> <property name="ireport.y" value="0"/> <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"/> <style name="bordered" mode="Opaque" backcolor="#FFFFFF"> <box> <pen lineWidth="0.5" lineColor="#000000"/> </box> </style> <parameter name="created" class="java.lang.String" isForPrompting="false"/> <parameter name="start_period" class="java.lang.String" isForPrompting="false"/> <parameter name="end_period" class="java.lang.String" isForPrompting="false"/> <queryString language="xPath"> <![CDATA[/data/items/*]]> </queryString> <field name="index" class="java.lang.Integer"> <fieldDescription><![CDATA[index]]></fieldDescription> </field> <field name="nss_mark" class="java.lang.String"> <fieldDescription><![CDATA[nss_mark]]></fieldDescription> </field> <field name="status" class="java.lang.String"> <fieldDescription><![CDATA[status]]></fieldDescription> </field> <field name="doc_effective_date" class="java.lang.String"> <fieldDescription><![CDATA[doc_effective_date]]></fieldDescription> </field> <field name="npa_point" class="java.lang.String"> <fieldDescription><![CDATA[npa_point]]></fieldDescription> </field> <field name="contains_in_npa_links" class="java.lang.String"> <fieldDescription><![CDATA[contains_in_npa_links]]></fieldDescription> </field> <field name="included_in_evedeces_base_of_technical_regulations" class="java.lang.String"> <fieldDescription><![CDATA[included_in_evedeces_base_of_technical_regulations]]></fieldDescription> </field> <!-- https://stackoverflow.com/questions/9798399/group-several-same-value-field-into-a-single-cell --> <group name="npaGroup"> <groupExpression><![CDATA[$F{contains_in_npa_links}]]></groupExpression> <groupFooter> <band height="1"> <line> <reportElement x="0" y="0" width="802" height="1" > <printWhenExpression><![CDATA[$V{npaGroup_COUNT} == 1]]></printWhenExpression> </reportElement> </line> </band> </groupFooter> </group> <background> <band splitType="Stretch"/> </background> <title> <band height="48" splitType="Stretch"> <staticText> <reportElement x="0" y="0" width="800" height="16" uuid="154eca81-a749-4825-9f8d-5d075643f6df"/> <textElement textAlignment="Center"> <font fontName="Arial" isBold="true" pdfEncoding="Cp1251" isPdfEmbedded="true"/> </textElement> <text><![CDATA[Перечень национальных стандартов и информационно-технических справочников, ссылки на которые содержатся в нормативных правовых актах]]></text> </staticText> <staticText> <reportElement x="0" y="16" width="800" height="16" uuid="154eca81-a749-4825-9f8d-5d075643f6df"/> <textElement textAlignment="Center"> <font fontName="Arial" isBold="true" pdfEncoding="Cp1251" isPdfEmbedded="true"/> </textElement> <text><![CDATA[Правительства Российской Федерации, федеральных органов исполнительной власти и Государственной корпорации по атомной энергии «Росатом» (форма № 9)]]></text> </staticText> <staticText> <reportElement x="0" y="32" width="800" height="16" uuid="154eca81-a749-4825-9f8d-5d075643f6df"/> <textElement textAlignment="Center"> <font fontName="Arial" isBold="true" pdfEncoding="Cp1251" isPdfEmbedded="true"/> </textElement> <text><![CDATA[(форма № 9)]]></text> </staticText> </band> </title> <columnHeader> <band height="112" splitType="Stretch"> <staticText> <reportElement style="bordered" x="0" y="0" width="40" height="112" isPrintWhenDetailOverflows="true" uuid="94cdb670-b23e-47e4-806b-b225786efee8"/> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None"> <font fontName="Arial" isBold="true" pdfEncoding="Cp1251" isPdfEmbedded="true"/> </textElement> <text><![CDATA[№]]></text> </staticText> <staticText> <reportElement style="bordered" x="40" y="0" width="170" height="112" isPrintWhenDetailOverflows="true" uuid="94cdb670-b23e-47e4-806b-b225786efee8"/> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None"> <font fontName="Arial" isBold="true" pdfEncoding="Cp1251" isPdfEmbedded="true"/> </textElement> <text><![CDATA[Наименование и обозначение национального стандарта]]></text> </staticText> <staticText> <reportElement style="bordered" x="210" y="0" width="90" height="112" isPrintWhenDetailOverflows="true" uuid="a25f203e-c6d3-46c8-b2f5-a1887caf13f4"/> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None"> <font fontName="Arial" isBold="true" pdfEncoding="Cp1251" isPdfEmbedded="true"/> </textElement> <text><![CDATA[Дата утверждения национального стандарта]]></text> </staticText> <staticText> <reportElement style="bordered" x="300" y="0" width="120" height="112" isPrintWhenDetailOverflows="true" uuid="a25f203e-c6d3-46c8-b2f5-a1887caf13f4"/> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="html"> <font fontName="Arial" isBold="true" pdfEncoding="Cp1251" isPdfEmbedded="true"/> </textElement> <text> <![CDATA[Разделы и пункты национального стандарта, на которые содержится ссылка в нормативном правовом акте (нормативных правовых актах)]]></text> </staticText> <staticText> <reportElement style="bordered" x="420" y="0" width="220" height="112" isPrintWhenDetailOverflows="true" uuid="a25f203e-c6d3-46c8-b2f5-a1887caf13f4"/> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None" markup="html"> <font fontName="Arial" isBold="true" pdfEncoding="Cp1251" isPdfEmbedded="true"/> </textElement> <text> <![CDATA[Вид, наименование и обозначение нормативного правового акта (нормативных правовых актов), в котором (которых) содержится ссылка на национальный стандарт]]></text> </staticText> <staticText> <reportElement style="bordered" x="640" y="0" width="80" height="112" isPrintWhenDetailOverflows="true" uuid="a25f203e-c6d3-46c8-b2f5-a1887caf13f4"/> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None"> <font fontName="Arial" isBold="true" pdfEncoding="Cp1251" isPdfEmbedded="true"/> </textElement> <text><![CDATA[Включен в доказательную базу технического регламента]]></text> </staticText> <staticText> <reportElement style="bordered" x="720" y="0" width="80" height="112" isPrintWhenDetailOverflows="true" uuid="a25f203e-c6d3-46c8-b2f5-a1887caf13f4"/> <textElement textAlignment="Center" verticalAlignment="Top" rotation="None"> <font fontName="Arial" isBold="true" pdfEncoding="Cp1251" isPdfEmbedded="true"/> </textElement> <text><![CDATA[Примечание]]></text> </staticText> </band> </columnHeader> <detail> <band height="16" splitType="Stretch"> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement style="bordered" x="0" y="0" width="40" height="16" isPrintWhenDetailOverflows="true" uuid="1a4235b0-feb5-4e33-b498-d0af214748d4" stretchType="RelativeToBandHeight"/> <textElement textAlignment="Center" markup="styled" verticalAlignment="Middle"> <font fontName="Arial"/> </textElement> <textFieldExpression><![CDATA[$F{index}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement style="bordered" x="40" y="0" width="170" height="16" isPrintWhenDetailOverflows="true" uuid="91174c8d-d234-4292-acf3-655008ec352f" stretchType="RelativeToBandHeight"/> <textElement textAlignment="Left" verticalAlignment="Middle"> <font fontName="Arial"/> </textElement> <textFieldExpression><![CDATA[$F{nss_mark}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement style="bordered" x="210" y="0" width="90" height="16" isPrintWhenDetailOverflows="true" uuid="4cd16947-d3b8-4d4d-8622-bd31a4537ed4" stretchType="RelativeToBandHeight"/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="Arial"/> </textElement> <textFieldExpression><![CDATA[$F{doc_effective_date}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement style="bordered" x="300" y="0" width="120" height="16" isPrintWhenDetailOverflows="true" uuid="4cd16947-d3b8-4d4d-8622-bd31a4537ed4" stretchType="RelativeToBandHeight"/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="Arial"/> </textElement> <textFieldExpression><![CDATA[$F{npa_point}]]></textFieldExpression> </textField> <!-- <textField isStretchWithOverflow="true" isBlankWhenNull="true">--> <!-- <reportElement style="bordered" x="420" y="0" width="220" height="16" isPrintWhenDetailOverflows="true"--> <!-- uuid="4cd16947-d3b8-4d4d-8622-bd31a4537ed4"--> <!-- stretchType="RelativeToBandHeight"/>--> <!-- <textElement textAlignment="Center" verticalAlignment="Middle">--> <!-- <font fontName="Arial"/>--> <!-- </textElement>--> <!-- <textFieldExpression><![CDATA[$F{contains_in_npa_links}]]></textFieldExpression>--> <!-- </textField>--> <textField evaluationTime="Group" evaluationGroup="npaGroup" isBlankWhenNull="false"> <reportElement stretchType="RelativeToBandHeight" isPrintRepeatedValues="false" x="420" y="0" isPrintWhenDetailOverflows="true" width="220" height="16" printWhenGroupChanges="npaGroup" > <printWhenExpression><![CDATA[$V{npaGroup_COUNT} == 1]]></printWhenExpression> </reportElement> <box leftPadding="0" > <topPen lineWidth="0.0"/> <leftPen lineWidth="0.0"/> <bottomPen lineWidth="0.0"/> <rightPen lineWidth="0.0"/> </box> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="Arial"/> </textElement> <textFieldExpression><![CDATA[$F{contains_in_npa_links}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement style="bordered" x="640" y="0" width="80" height="16" isPrintWhenDetailOverflows="true" uuid="4cd16947-d3b8-4d4d-8622-bd31a4537ed4" stretchType="RelativeToBandHeight"/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="Arial"/> </textElement> <textFieldExpression><![CDATA[$F{included_in_evedeces_base_of_technical_regulations}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement style="bordered" x="720" y="0" width="80" height="16" isPrintWhenDetailOverflows="true" uuid="4cd16947-d3b8-4d4d-8622-bd31a4537ed4" stretchType="RelativeToBandHeight"/> <textElement textAlignment="Center" verticalAlignment="Middle"> <font fontName="Arial"/> </textElement> <textFieldExpression><![CDATA[$F{status}]]></textFieldExpression> </textField> <line> <reportElement x="420" y="0" width="220" height="1" printWhenGroupChanges="npaGroup"> <printWhenExpression><![CDATA[$V{npaGroup_COUNT} == 1]]></printWhenExpression> </reportElement> </line> </band> </detail> </jasperReport>
А вот изображение

Проблема возникает возле <textField evaluationTime="Group" evaluationGroup="npaGroup" isBlankWhenNull="false">
Скажите пожалуйста, как зафиксить бордюры (подчеркнуто красным)?
Спасибо