■デザイン確認
$ cat sample01.jrxml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN"
"http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
<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="jasper_report_template" language="groovy" pageWidth="595"
pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20"
topMargin="20" bottomMargin="20">
<field name="first_name" class="java.lang.String" />
<columnHeader>
<band height="23">
<staticText>
<reportElement x="5" y="3" width="100" height="15" />
<textElement textAlignment="Center"
verticalAlignment="Middle"> <font isBold="true" />
</textElement>
<text><![CDATA[first_name]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="16">
<textField>
<reportElement x="5" y="0" width="100" height="15" />
<textElement textAlignment="Center"
verticalAlignment="Middle">
<font size="9" />
</textElement>
<textFieldExpression class="java.lang.String">
<![CDATA[$F{first_name}]]>
</textFieldExpression>
</textField>
</band>
</detail>
</jasperReport>
java net.sf.jasperreports.view.JasperDesignViewer -XML sample01.jrxml
0 件のコメント:
コメントを投稿