Skip to content

Instantly share code, notes, and snippets.

@dezmontx
Created January 28, 2020 06:25
Show Gist options
  • Save dezmontx/0fb842cf994d83f77c333dfe9dd45023 to your computer and use it in GitHub Desktop.
Save dezmontx/0fb842cf994d83f77c333dfe9dd45023 to your computer and use it in GitHub Desktop.
...
<detail>
<band height="112">
...
<textField>
<reportElement x="0" y="30" width="40" height="30" uuid="fb393215-5b6f-4261-b556-9a567c12782e"/>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA["№"]]></textFieldExpression>
</textField>
<textField>
<reportElement x="40" y="30" width="80" height="30" uuid="f6d39b7b-2c03-405d-90e7-712b8e266150"/>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA["1"]]></textFieldExpression>
</textField>
<textField>
<reportElement x="120" y="30" width="210" height="30" uuid="8a23b311-bb28-4fc3-b846-ad4ecc3958c2"/>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA["2"]]></textFieldExpression>
</textField>
<textField>
<reportElement x="330" y="30" width="40" height="30" uuid="91c1c86d-831c-4f4b-90e9-89f86632b6db"/>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA["3"]]></textFieldExpression>
</textField>
<textField>
<reportElement x="370" y="30" width="70" height="30" uuid="b6cbe7f4-9639-435f-82b5-fa5fd14924ba"/>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA["4"]]></textFieldExpression>
</textField>
<textField>
<reportElement x="440" y="30" width="115" height="30" uuid="e01cdede-4572-45ce-8705-0be8f5c27908"/>
<box>
<topPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<leftPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<bottomPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
<rightPen lineWidth="1.0" lineStyle="Solid" lineColor="#000000"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font size="10"/>
</textElement>
<textFieldExpression><![CDATA["5"]]></textFieldExpression>
</textField>
<componentElement>
<reportElement x="0" y="60" width="555" height="20" uuid="f5f05a54-575d-4457-93c8-8939443949cf"/>
<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="Vertical">
<datasetRun subDataset="resitSubjects" uuid="08fc480f-828d-4adb-b528-72b39157c29c">
<dataSourceExpression><![CDATA[new net.sf.jasperreports.engine.data.JRBeanCollectionDataSource($F{resitSubjects})]]></dataSourceExpression>
</datasetRun>
<jr:listContents height="20" width="555">
<textField isStretchWithOverflow="true">
<reportElement positionType="Float" stretchType="RelativeToBandHeight" x="0" y="0" width="40" height="20" uuid="bae6a1c7-e20d-4a65-870b-f779a824d5a3"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
<rightPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$V{number}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement positionType="Float" stretchType="RelativeToBandHeight" x="40" y="0" width="80" height="20" uuid="08b5f5a0-8d05-45e6-b36d-28400888d5cb"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
<rightPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{subjectcode} == null ? "" : $F{subjectcode}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement positionType="Float" stretchType="RelativeToBandHeight" x="120" y="0" width="210" height="20" uuid="ba48d7b3-20b3-46db-8902-7be16710bca8"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
<rightPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<paragraph tabStopWidth="0"/>
</textElement>
<textFieldExpression><![CDATA[$F{subjectname}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement positionType="Float" stretchType="RelativeToBandHeight" x="330" y="0" width="40" height="20" uuid="b5f4fefe-e0f8-4639-9a47-afbe6539a4b5"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
<rightPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<paragraph tabStopWidth="0"/>
</textElement>
<textFieldExpression><![CDATA[$F{semesternumber}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement positionType="Float" stretchType="RelativeToBandHeight" x="370" y="0" width="70" height="20" uuid="682ec854-527f-451c-95c5-f7f7ed60fb2e"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
<rightPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle">
<paragraph tabStopWidth="0"/>
</textElement>
<textFieldExpression><![CDATA[$F{subjectname}></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement positionType="Float" stretchType="RelativeToBandHeight" x="440" y="0" width="115" height="20" uuid="73545cc1-6146-4aba-b5ec-8fdc814270e0"/>
<box>
<topPen lineWidth="0.5"/>
<leftPen lineWidth="0.5"/>
<bottomPen lineWidth="0.5"/>
<rightPen lineWidth="0.5"/>
</box>
<textElement textAlignment="Center" verticalAlignment="Middle"/>
<textFieldExpression><![CDATA[$F{strRatingFull}]]></textFieldExpression>
</textField>
</jr:listContents>
</jr:list>
</componentElement>
</band>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment