2006 IR Open Discussion Posted August 19, 2006 Share Posted August 19, 2006 By: Xugagnqiang - whiie Very Urgent!field in detail can't be printed! 2003-09-16 06:47 Not only the fields but also the <staticText> of <line> can't be printed! Please be helpful! I have turn to the sample Datasource but it's of no help! The following is the xml document and I hope you can give some advice.Thank you. <?xml version="1.0" encoding="BIG5"?> <!-- edited with XMLSPY v2004 rel. 2 U (http://www.xmlspy.com) by Xu Gangqiang (ZheJiang University) --> <!-- Created with iReport - A designer for JasperReports --> <!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"> <jasperReport name="checkPaymentDetail" columnCount="1" printOrder="Vertical" orientation="Portrait" pageWidth="595" pageHeight="842" columnWidth="595" columnSpacing="0" leftMargin="0" rightMargin="0" topMargin="20" bottomMargin="20" whenNoDataType="AllSectionsNoDetail" isTitleNewPage="false" isSummaryNewPage="false" scriptletClass="CheckPaymentDetailScriptlet"> <reportFont name="Arial_Normal" isDefault="true" fontName="sansserif" size="10" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="MHei-Medium" pdfEncoding="UniCNS-UCS2-H" isPdfEmbedded="true"/> <!-- parameters --> <parameter name="vector" class="java.util.Vector"/> <parameter name="OpenDate" class="java.lang.String"/> <parameter name="currentDate" class="java.lang.String"/> <parameter name="applyDivisionCode" class="java.lang.String"/> <parameter name="chineseApplyDivision" class="java.lang.String"/> <field name="paymentDivision" class="java.lang.String"/> <field name="policyNo" class="java.lang.String"/> <field name="authCode" class="java.lang.String"/> <field name="chineseAuthCode" class="java.lang.String" /> <field name="year" class="java.lang.String"/> <field name="fileNum" class="java.lang.String" /> <field name="businessTypeCode" class="java.lang.String" /> <field name="chineseBusinessTypeCode" class="java.lang.String" /> <field name="paymentType" class="java.lang.String" /> <field name="chinesePaymentType" class="java.lang.String" /> <field name="paymentAmount" class="java.lang.Double" /> <field name="checkNo" class="java.lang.String" /> <field name="checkDate" class="java.lang.String" /> <field name="payeeName" class="java.lang.String" /> <field name="memo" class="java.lang.String" /> <!-- variables for dynamic changes --> <variable name="page" class="java.lang.Integer" resetType="Page"> <initialValueExpression> new Integer(1) </initialValueExpression> </variable> <variable name="totalAmount" class="java.lang.Double" calculation="Sum"> <variableExpression> $F{paymentAmount} </variableExpression> <initialValueExpression> new Double(0d) </initialValueExpression> </variable> <group name="checkPaymentDetail" isStartNewPage="true"> <groupExpression> $F{paymentAmount} </groupExpression> <groupHeader> <band height="5"> </band> </groupHeader> <groupFooter> <band height="25"> <textField> <reportElement x="260" y="2" height="20" width="115"/> <textFieldExpression class="java.lang.Double">$F{paymentAmount}</textFieldExpression> </textField> </band> </groupFooter> </group> <title> <band height="25"> <textField> <reportElement x="260" y="2" height="20" width="115"/> <textFieldExpression>((CheckPaymentDetailScriptlet)$P{REPORT_SCRIPTLET}).getFieldTitle() </textFieldExpression> </textField> </band> </title> <pageHeader> <band height="50"> <textField> <reportElement mode="Opaque" x="1" y="4" width="68" height="20" isPrintRepeatedValues="true"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression>((CheckPaymentDetailScriptlet)$P{REPORT_SCRIPTLET}).getFieldOpenDate() </textFieldExpression> </textField> <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Report" hyperlinkType="None"> <reportElement mode="Opaque" x="80" y="4" width="81" height="20" isPrintRepeatedValues="true"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{OpenDate}]]></textFieldExpression> </textField> <textField> <reportElement mode="Opaque" x="410" y="0" width="80" height="20" isPrintRepeatedValues="true"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression>((CheckPaymentDetailScriptlet)$P{REPORT_SCRIPTLET}).getFieldCurrentDate() </textFieldExpression> </textField> <textField> <reportElement x="492" y="0" height="20" width="30"/> <textElement> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression> $P{currentDate} </textFieldExpression> </textField> <textField> <reportElement mode="Opaque" x="1" y="27" width="85" height="20" isPrintRepeatedValues="true"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression> ((CheckPaymentDetailScriptlet)$P{REPORT_SCRIPTLET}).getFieldChineseApplyDivision() </textFieldExpression> </textField> <textField> <reportElement x="90" y="27" height="20" width="25"/> <textElement> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression> $P{applyDivisionCode} </textFieldExpression> </textField> <textField> <reportElement x="127" y="27" height="20" width="30"/> <textElement> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression> $P{chineseApplyDivision} </textFieldExpression> </textField> <textField> <reportElement mode="Opaque" x="410" y="27" width="90" height="20" isPrintRepeatedValues="true"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression> ((CheckPaymentDetailScriptlet)$P{REPORT_SCRIPTLET}).getFieldPage() </textFieldExpression> </textField> <textField> <reportElement x="503" y="27" height="20" width="5"/> <textElement> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression class="java.lang.Integer"> $V{PAGE_NUMBER} </textFieldExpression> </textField> </band> </pageHeader> <columnHeader> <band height="60"> <textField> <reportElement mode="Opaque" x="1" y="6" width="20" height="35" isPrintRepeatedValues="true"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression> ((CheckPaymentDetailScriptlet)$P{REPORT_SCRIPTLET}).getFieldApplyDivision() </textFieldExpression> </textField> <textField> <reportElement mode="Opaque" x="25" y="23" height="20" width="63" isPrintRepeatedValues="true"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression> ((CheckPaymentDetailScriptlet)$P{REPORT_SCRIPTLET}).getFieldPolicyNo() </textFieldExpression> </textField> <textField> <reportElement mode="Opaque" x="92" y="23" width="50" height="20" isPrintRepeatedValues="true"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression> ((CheckPaymentDetailScriptlet)$P{REPORT_SCRIPTLET}).getFieldCheckNo() </textFieldExpression> </textField> <textField> <reportElement mode="Opaque" x="145" y="6" width="14" height="34" isPrintRepeatedValues="true"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression> ((CheckPaymentDetailScriptlet)$P{REPORT_SCRIPTLET}).getFieldYear() </textFieldExpression> </textField> <textField> <reportElement mode="Opaque" x="163" y="23" width="51" height="20" isPrintRepeatedValues="true"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression> ((CheckPaymentDetailScriptlet)$P{REPORT_SCRIPTLET}).getFieldFileNum() </textFieldExpression> </textField> <textField> <reportElement mode="Opaque" x="217" y="23" width="46" height="20" isPrintRepeatedValues="true"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression> ((CheckPaymentDetailScriptlet)$P{REPORT_SCRIPTLET}).getFieldAuthCode() </textFieldExpression> </textField> <textField> <reportElement mode="Opaque" x="267" y="23" width="51" height="20" isPrintRepeatedValues="true"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression> ((CheckPaymentDetailScriptlet)$P{REPORT_SCRIPTLET}).getFieldPaymentType() </textFieldExpression> </textField> <textField> <reportElement mode="Opaque" x="321" y="23" width="52" height="20" isPrintRepeatedValues="true"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression> ((CheckPaymentDetailScriptlet)$P{REPORT_SCRIPTLET}).getFieldPaymentAmount() </textFieldExpression> </textField> <textField> <reportElement mode="Opaque" x="376" y="23" width="50" height="20" isPrintRepeatedValues="true"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression> ((CheckPaymentDetailScriptlet)$P{REPORT_SCRIPTLET}).getFieldCheckDate() </textFieldExpression> </textField> <textField> <reportElement mode="Opaque" x="429" y="23" width="50" height="20" isPrintRepeatedValues="true"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression> ((CheckPaymentDetailScriptlet)$P{REPORT_SCRIPTLET}).getFieldBusinessTypeCode() </textFieldExpression> </textField> <textField> <reportElement mode="Opaque" x="482" y="23" width="61" height="20" isPrintRepeatedValues="true"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression> ((CheckPaymentDetailScriptlet)$P{REPORT_SCRIPTLET}).getFieldPayeeName() </textFieldExpression> </textField> <textField> <reportElement mode="Opaque" x="560" y="23" width="35" height="20" isPrintRepeatedValues="true"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression> ((CheckPaymentDetailScriptlet)$P{REPORT_SCRIPTLET}).getFieldMemo() </textFieldExpression> </textField> <staticText> <reportElement mode="Opaque" x="3" y="44" width="589" height="5" isPrintRepeatedValues="true"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Arial_Normal"/> </textElement> <text> <![CDATA[................................................................................................................................................................................................................]]> </text> </staticText> </band> </columnHeader> <detail> <band height="100"> <line> <reportElement x="0" y="0" width="515" height="0" forecolor="black"/> <graphicElement stretchType="NoStretch"/> </line> <textField> <reportElement mode="Opaque" x="1" y="2" width="20" height="20" isPrintRepeatedValues="true"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression> $F{paymentDivision} </textFieldExpression> </textField> <textField> <reportElement mode="Opaque" x="25" y="2" height="20" width="63" isPrintRepeatedValues="true"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression> $F{policyNo} </textFieldExpression> </textField> <textField> <reportElement mode="Opaque" x="92" y="2" width="50" height="20" isPrintRepeatedValues="true"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression> $F{checkNo} </textFieldExpression> </textField> <textField> <reportElement mode="Opaque" x="145" y="2" width="14" height="20" isPrintRepeatedValues="true"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression> $F{year} </textFieldExpression> </textField> <textField> <reportElement mode="Opaque" x="163" y="2" width="51" height="20" isPrintRepeatedValues="true"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression> $F{fileNum} </textFieldExpression> </textField> <textField> <reportElement mode="Opaque" x="217" y="2" width="46" height="20" isPrintRepeatedValues="true"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression> $F{authCode} </textFieldExpression> </textField> <textField> <reportElement mode="Opaque" x="267" y="2" width="51" height="20" isPrintRepeatedValues="true"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression class="java.lang.String"> $F{paymentType} </textFieldExpression> </textField> <textField> <reportElement mode="Opaque" x="321" y="2" width="52" height="20" isPrintRepeatedValues="true"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression class="java.lang.Double"> $F{paymentAmount} </textFieldExpression> </textField> <textField> <reportElement mode="Opaque" x="376" y="2" width="50" height="20" isPrintRepeatedValues="true"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression> $F{checkDate} </textFieldExpression> </textField> <textField> <reportElement mode="Opaque" x="429" y="2" width="50" height="20" isPrintRepeatedValues="true"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression> $F{businessTypeCode} </textFieldExpression> </textField> <textField> <reportElement mode="Opaque" x="482" y="2" width="61" height="20" isPrintRepeatedValues="true"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression> $F{payeeName} </textFieldExpression> </textField> <textField> <reportElement mode="Opaque" x="560" y="2" width="35" height="20" isPrintRepeatedValues="true"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression> $F{memo} </textFieldExpression> </textField> </band> </detail> <summary> <band height="35"> <staticText> <reportElement mode="Opaque" x="3" y="2" width="589" height="5" isPrintRepeatedValues="true"/> <textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single"> <font fontName="Arial_Normal"/> </textElement> <text> <![CDATA[................................................................................................................................................................................................................]]> </text> </staticText> <textField> <reportElement x="0" y="5" width="35" height="20" isPrintRepeatedValues="true" positionType="FixRelativeToTop"/> <textElement> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression> ((CheckPaymentDetailScriptlet)$P{REPORT_SCRIPTLET}).getFieldTotal() </textFieldExpression> </textField> <textField> <reportElement x="40" y="5" width="20" height="20" isPrintRepeatedValues="true"/> <textElement> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression class = "java.lang.Integer" > ((CheckPaymentDetailScriptlet)$P{REPORT_SCRIPTLET}).getTotalItems() </textFieldExpression> </textField> <textField> <reportElement x="276" y="5" width="60" height="20" isPrintRepeatedValues="true"/> <textElement> <font fontName="Arial_Normal"/> </textElement> <textFieldExpression class="java.lang.Double"> $V{totalAmount} </textFieldExpression> </textField> </band> </summary> </jasperReport> By: Gregory A. Swarthout - gswarthout RE: Very Urgent!field in detail can't be prin 2003-09-16 10:04 Your field height isn't tall enough. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now