Есть задача - в отчете объединять строки с повторяющимися значениями. В Интернете говорится, что для этого достаточно установить атрибут isPrintRepeatedValues="false" у элемента reportElement , на практике это приводит к тому, что значение поля в самом деле печатается один раз для одинаковых значений, но оно выровнено по верхнему краю объединенной ячейки (Top, хотя verticalAlignment="Middle" задан явно), кроме того оно некрасиво имеет border.

Вот фрагмент отчета:
<detail> <band height="16" splitType="Stretch"> <!-- <printWhenExpression><![CDATA[$F{index} != null]]></printWhenExpression>--> <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" > <reportElement style="bordered" x="420" y="0" width="220" height="16" isPrintWhenDetailOverflows="true" isPrintRepeatedValues="false" stretchType="RelativeToBandHeight"/> <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> </band>
Всё это запускалось в JasperReports v 6.3
вопрос - как правильно объединить строки?
Спасибо!