2
현재 샘플 템플릿을 실행해도 텍스트가 보이지 않는 이유는 무엇입니까?My Jasper 템플릿에 텍스트가 표시되지 않습니다.
<?xml version="1.0"?>
<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="SampleReport" pageWidth="798" pageHeight="1000">
<title>
<band height="50">
<staticText>
<reportElement x="0" y="0" width="180" height="15"/>
<textElement/>
<text>
<![CDATA[Sample Title]]>
</text>
</staticText>
</band>
</title>
<detail>
<band height="20">
<staticText>
<reportElement x="20" y="0" width="200" height="20"/>
<text>
<![CDATA[Sample Text]]>
</text>
</staticText>
</band>
</detail>
</jasperReport>
개미 작업을 사용하여 이와 같이이 테스트를 실행했습니다.
<target name="viewDesignXML"
<java classname="net.sf.jasperreports.view.JasperDesignViewer"
fork="true">
<arg value="-XML" />
<arg value="-F${file.name}.jrxml" />
<classpath refid="classpath" />
</java>
</target>
이것은 이클립스 3.6
감사