2007-07-27
苦不堪言,iReport + JasperReports项目中的历练
JasperReports
这个东西,是个好东西,iReport这个东西,也是个好东西;就是iReport这个东西,给我很多启示,关于sql组件,虽最终未必可行,目前处于验证进程。
话说使用iReport+JasperReports开发报表的曾经的尴尬,testing during development and testing on local machine, the report pdf displays well, so good job have done, but when demo in customer locale, a lot of fields cannot be displayed(不能显示了!)。
After a lot of time trying, almost every options supplied have been tried in checked way and unchecked way, the well fields displayed accordingly, I have got some ideas:
1) cannot display(不能显示), but other field with same content can display , why?
OK, the size is too small(把字符框的 大小设置大一些),then well done.、
2)some field cannot display
process: I found these undisplayed is in header, then I copy them to footer, what's the result? display well in footer, but no display in header.
then I change the "evaluation time" from "now" to "column"
well done!
but be careful, fields valued $F cannot be column, for it cannot be displayed
3) some field cannot be display corresponding to 2)
why they cannot be displayed in both header and footer?
oh, I found most field have the "stretch with overflow" option checked, so I added, so cool
******************************************************
this problem I found explation when I solved on net
ireport有时侯不能显示数据库中数据的解决方式:
1)每一个element:设置:print when details overflow ;stretch overflow
2)字段高度不够
******************************************************
all resolved, the boss smiled, and happy back from customer

话说使用iReport+JasperReports开发报表的曾经的尴尬,testing during development and testing on local machine, the report pdf displays well, so good job have done, but when demo in customer locale, a lot of fields cannot be displayed(不能显示了!)。
After a lot of time trying, almost every options supplied have been tried in checked way and unchecked way, the well fields displayed accordingly, I have got some ideas:
1) cannot display(不能显示), but other field with same content can display , why?
OK, the size is too small(把字符框的 大小设置大一些),then well done.、
2)some field cannot display
process: I found these undisplayed is in header, then I copy them to footer, what's the result? display well in footer, but no display in header.
then I change the "evaluation time" from "now" to "column"
well done!
but be careful, fields valued $F cannot be column, for it cannot be displayed
3) some field cannot be display corresponding to 2)
why they cannot be displayed in both header and footer?
oh, I found most field have the "stretch with overflow" option checked, so I added, so cool
******************************************************
this problem I found explation when I solved on net
iReport stretch 选项的注意
Text Field有一选项为Stretch with overflow。 作用是动态的伸展文字所占的空间。
要注意一点是Stretch是跟据Font Name的体字像数为基准进行伸展的。所以当我们输出PDF格式时要注意PDF Font Name 与Font Name是否一致。如不一致在文字量多的时候会出现少了或多了显示空间的问题
iReport Band的[Split allowed]属性
Split allowed是允许分开的意思。以页为单位,被分离出去的是Band内的所有内容。如果剩下的页面空间不够显示Band的内容。那么Band的内容会显示在下一页。
ireport有时侯不能显示数据库中数据的解决方式:
1)每一个element:设置:print when details overflow ;stretch overflow
2)字段高度不够
******************************************************
all resolved, the boss smiled, and happy back from customer
评论
axiang_2898
2008-02-22
你好,我这里有这样一个模板,帮我看看,为什么不能正确显示呢?
就是字段不会全部显示?
就是字段不会全部显示?
<?xml version="1.0" encoding="UTF-8" ?>
<!-- Created with iReport - A designer for JasperReports -->
<!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">
<jasperReport
name="month_check_mx_ck"
columnCount="1"
printOrder="Horizontal"
orientation="Landscape"
pageWidth="842"
pageHeight="595"
columnWidth="782"
columnSpacing="0"
leftMargin="30"
rightMargin="30"
topMargin="20"
bottomMargin="20"
whenNoDataType="NoPages"
isFloatColumnFooter="true"
isTitleNewPage="false"
isSummaryNewPage="false">
<property name="ireport.scriptlethandling" value="0" />
<property name="ireport.encoding" value="UTF-8" />
<import value="java.util.*" />
<import value="net.sf.jasperreports.engine.*" />
<import value="net.sf.jasperreports.engine.data.*" />
<style
name="Arial_Bold"
isDefault="false"
fontName="宋体"
fontSize="12"
isBold="true"
pdfFontName="STSong-Light"
pdfEncoding="UniGB-UCS2-H"
isPdfEmbedded="false"
/>
<style
name="Arial_Italic"
isDefault="false"
fontName="宋体"
fontSize="12"
isItalic="true"
pdfFontName="STSong-Light"
pdfEncoding="UniGB-UCS2-H"
isPdfEmbedded="false"
/>
<style
name="Arial_Normal"
isDefault="true"
fontName="宋体"
fontSize="12"
pdfFontName="STSong-Light"
pdfEncoding="UniGB-UCS2-H"
isPdfEmbedded="false"
/>
<parameter name="str1" isForPrompting="true" class="java.lang.String"/>
<parameter name="make_name_head" isForPrompting="true" class="java.lang.String"/>
<parameter name="start_time_head" isForPrompting="true" class="java.lang.String"/>
<parameter name="end_time_head" isForPrompting="true" class="java.lang.String"/>
<parameter name="operator_name_footer" isForPrompting="true" class="java.lang.String"/>
<parameter name="print_time_footer" isForPrompting="true" class="java.lang.String"/>
<queryString><![CDATA[select d.code as base_code,d.name as base_name,c.code as materiel_code,c.name as materiel_name,c.spec,(select name from all_unit where c.unit_group_code=group_code and is_main_unit='1') as main_unit_name,a.start_number,a.start_money,a.cg_in_number,a.cg_in_money,isnull(a.yddb_in_number,0) as yddb_in_number,isnull(a.yddb_in_money,0) as yddb_in_money,a.ly_out_number,a.ly_out_money,a.yddb_out_number,a.yddb_out_money,a.end_number,a.end_money from kc_month_check_list as a,kc_month_check as b,all_materiel as c,kc_base as d where a.order_code=b.code and a.materiel_code=c.code and a.base_code=d.code and b.check_month=1 $P!{str1} order by d.code]]></queryString>
<field name="base_code" class="java.lang.String"/>
<field name="base_name" class="java.lang.String"/>
<field name="materiel_code" class="java.lang.String"/>
<field name="materiel_name" class="java.lang.String"/>
<field name="spec" class="java.lang.String"/>
<field name="main_unit_name" class="java.lang.String"/>
<field name="start_number" class="java.lang.Double"/>
<field name="start_money" class="java.lang.Double"/>
<field name="cg_in_number" class="java.lang.Double"/>
<field name="cg_in_money" class="java.lang.Double"/>
<field name="yddb_in_number" class="java.lang.Double"/>
<field name="yddb_in_money" class="java.lang.Double"/>
<field name="ly_out_number" class="java.lang.Double"/>
<field name="ly_out_money" class="java.lang.Double"/>
<field name="yddb_out_number" class="java.lang.Double"/>
<field name="yddb_out_money" class="java.lang.Double"/>
<field name="end_number" class="java.lang.Double"/>
<field name="end_money" class="java.lang.Double"/>
<background>
<band height="0" isSplitAllowed="false" >
</band>
</background>
<title>
<band height="0" isSplitAllowed="false" >
</band>
</title>
<pageHeader>
<band height="18" isSplitAllowed="false" >
<rectangle>
<reportElement
mode="Opaque"
x="-1"
y="3"
width="782"
height="15"
forecolor="#333333"
backcolor="#333333"
key="rectangle-1"
stretchType="RelativeToTallestObject"/>
<graphicElement stretchType="RelativeToTallestObject"/>
</rectangle>
<staticText>
<reportElement
style="Arial_Bold"
mode="Opaque"
x="-1"
y="3"
width="40"
height="15"
forecolor="#FFFFFF"
backcolor="#808080"
key="staticText-1"
stretchType="RelativeToBandHeight"/>
<box topBorder="1Point" topBorderColor="#000000" leftBorder="1Point" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
<textElement textAlignment="Center">
<font/>
</textElement>
<text><![CDATA[仓库编码]]></text>
</staticText>
<staticText>
<reportElement
style="Arial_Bold"
mode="Opaque"
x="39"
y="3"
width="39"
height="15"
forecolor="#FFFFFF"
backcolor="#808080"
key="staticText-2"
stretchType="RelativeToBandHeight"
isPrintWhenDetailOverflows="true"/>
<box topBorder="1Point" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#000000" bottomBorder="1Point" bottomBorderColor="#000000"/>
<textElement textAlignment="Center">
<font/>
</textElement>
<text><![CDATA[仓库名称]]></text>
</staticText>
<staticText>
<reportElement
style="Arial_Bold"
mode="Opaque"
x="78"
y="3"
width="39"
height="15"
forecolor="#FFFFFF"
backcolor="#808080"
key="staticText-3"
stretchType="RelativeToBandHeight"
isPrintWhenDetailOverflows="true"/>
<box topBorder="1Point" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#000000" bottomBorder="1Point" bottomBorderColor="#000000"/>
<textElement textAlignment="Center">
<font/>
</textElement>
<text><![CDATA[材料编码]]></text>
</staticText>
<staticText>
<reportElement
style="Arial_Bold"
mode="Opaque"
x="117"
y="3"
width="39"
height="15"
forecolor="#FFFFFF"
backcolor="#808080"
key="staticText-4"
stretchType="RelativeToBandHeight"
isPrintWhenDetailOverflows="true"/>
<box topBorder="1Point" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#000000" bottomBorder="1Point" bottomBorderColor="#000000"/>
<textElement textAlignment="Center">
<font/>
</textElement>
<text><![CDATA[材料名称]]></text>
</staticText>
<staticText>
<reportElement
style="Arial_Bold"
mode="Opaque"
x="156"
y="3"
width="39"
height="15"
forecolor="#FFFFFF"
backcolor="#808080"
key="staticText-5"
stretchType="RelativeToBandHeight"
isPrintWhenDetailOverflows="true"/>
<box topBorder="1Point" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#000000" bottomBorder="1Point" bottomBorderColor="#000000"/>
<textElement textAlignment="Center">
<font/>
</textElement>
<text><![CDATA[规格]]></text>
</staticText>
<staticText>
<reportElement
style="Arial_Bold"
mode="Opaque"
x="195"
y="3"
width="39"
height="15"
forecolor="#FFFFFF"
backcolor="#808080"
key="staticText-6"
stretchType="RelativeToBandHeight"
isPrintWhenDetailOverflows="true"/>
<box topBorder="1Point" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#000000" bottomBorder="1Point" bottomBorderColor="#000000"/>
<textElement textAlignment="Center">
<font/>
</textElement>
<text><![CDATA[主单位]]></text>
</staticText>
<staticText>
<reportElement
style="Arial_Bold"
mode="Opaque"
x="234"
y="3"
width="39"
height="15"
forecolor="#FFFFFF"
backcolor="#808080"
key="staticText-7"
stretchType="RelativeToBandHeight"
isPrintWhenDetailOverflows="true"/>
<box topBorder="1Point" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#000000" bottomBorder="1Point" bottomBorderColor="#000000"/>
<textElement textAlignment="Center">
<font/>
</textElement>
<text><![CDATA[上期库存数量]]></text>
</staticText>
<staticText>
<reportElement
style="Arial_Bold"
mode="Opaque"
x="273"
y="3"
width="39"
height="15"
forecolor="#FFFFFF"
backcolor="#808080"
key="staticText-8"
stretchType="RelativeToBandHeight"
isPrintWhenDetailOverflows="true"/>
<box topBorder="1Point" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#000000" bottomBorder="1Point" bottomBorderColor="#000000"/>
<textElement textAlignment="Center">
<font/>
</textElement>
<text><![CDATA[上期库存金额]]></text>
</staticText>
<staticText>
<reportElement
style="Arial_Bold"
mode="Opaque"
x="312"
y="3"
width="39"
height="15"
forecolor="#FFFFFF"
backcolor="#808080"
key="staticText-9"
stretchType="RelativeToBandHeight"
isPrintWhenDetailOverflows="true"/>
<box topBorder="1Point" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#000000" bottomBorder="1Point" bottomBorderColor="#000000"/>
<textElement textAlignment="Center">
<font/>
</textElement>
<text><![CDATA[本期入库数量]]></text>
</staticText>
<staticText>
<reportElement
style="Arial_Bold"
mode="Opaque"
x="351"
y="3"
width="39"
height="15"
forecolor="#FFFFFF"
backcolor="#808080"
key="staticText-10"
stretchType="RelativeToBandHeight"
isPrintWhenDetailOverflows="true"/>
<box topBorder="1Point" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#000000" bottomBorder="1Point" bottomBorderColor="#000000"/>
<textElement textAlignment="Center">
<font/>
</textElement>
<text><![CDATA[本期入库金额]]></text>
</staticText>
<staticText>
<reportElement
style="Arial_Bold"
mode="Opaque"
x="390"
y="3"
width="39"
height="15"
forecolor="#FFFFFF"
backcolor="#808080"
key="staticText-11"
stretchType="RelativeToBandHeight"
isPrintWhenDetailOverflows="true"/>
<box topBorder="1Point" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#000000" bottomBorder="1Point" bottomBorderColor="#000000"/>
<textElement textAlignment="Center">
<font/>
</textElement>
<text><![CDATA[本期调入数量]]></text>
</staticText>
<staticText>
<reportElement
style="Arial_Bold"
mode="Opaque"
x="429"
y="3"
width="39"
height="15"
forecolor="#FFFFFF"
backcolor="#808080"
key="staticText-12"
stretchType="RelativeToBandHeight"
isPrintWhenDetailOverflows="true"/>
<box topBorder="1Point" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#000000" bottomBorder="1Point" bottomBorderColor="#000000"/>
<textElement textAlignment="Center">
<font/>
</textElement>
<text><![CDATA[本期调入金额]]></text>
</staticText>
<staticText>
<reportElement
style="Arial_Bold"
mode="Opaque"
x="468"
y="3"
width="39"
height="15"
forecolor="#FFFFFF"
backcolor="#808080"
key="staticText-13"
stretchType="RelativeToBandHeight"
isPrintWhenDetailOverflows="true"/>
<box topBorder="1Point" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#000000" bottomBorder="1Point" bottomBorderColor="#000000"/>
<textElement textAlignment="Center">
<font/>
</textElement>
<text><![CDATA[本期出库数量]]></text>
</staticText>
<staticText>
<reportElement
style="Arial_Bold"
mode="Opaque"
x="507"
y="3"
width="39"
height="15"
forecolor="#FFFFFF"
backcolor="#808080"
key="staticText-14"
stretchType="RelativeToBandHeight"
isPrintWhenDetailOverflows="true"/>
<box topBorder="1Point" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#000000" bottomBorder="1Point" bottomBorderColor="#000000"/>
<textElement textAlignment="Center">
<font/>
</textElement>
<text><![CDATA[本期出库金额]]></text>
</staticText>
<staticText>
<reportElement
style="Arial_Bold"
mode="Opaque"
x="546"
y="3"
width="39"
height="15"
forecolor="#FFFFFF"
backcolor="#808080"
key="staticText-15"
stretchType="RelativeToBandHeight"
isPrintWhenDetailOverflows="true"/>
<box topBorder="1Point" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#000000" bottomBorder="1Point" bottomBorderColor="#000000"/>
<textElement textAlignment="Center">
<font/>
</textElement>
<text><![CDATA[本期调出数量]]></text>
</staticText>
<staticText>
<reportElement
style="Arial_Bold"
mode="Opaque"
x="585"
y="3"
width="39"
height="15"
forecolor="#FFFFFF"
backcolor="#808080"
key="staticText-16"
stretchType="RelativeToBandHeight"
isPrintWhenDetailOverflows="true"/>
<box topBorder="1Point" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#000000" bottomBorder="1Point" bottomBorderColor="#000000"/>
<textElement textAlignment="Center">
<font/>
</textElement>
<text><![CDATA[本期调出金额]]></text>
</staticText>
<staticText>
<reportElement
style="Arial_Bold"
mode="Opaque"
x="624"
y="3"
width="39"
height="15"
forecolor="#FFFFFF"
backcolor="#808080"
key="staticText-17"
stretchType="RelativeToBandHeight"
isPrintWhenDetailOverflows="true"/>
<box topBorder="1Point" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#000000" bottomBorder="1Point" bottomBorderColor="#000000"/>
<textElement textAlignment="Center">
<font/>
</textElement>
<text><![CDATA[本期库存数量]]></text>
</staticText>
<staticText>
<reportElement
style="Arial_Bold"
mode="Opaque"
x="663"
y="3"
width="119"
height="15"
forecolor="#FFFFFF"
backcolor="#808080"
key="staticText-18"
stretchType="RelativeToBandHeight"
isPrintWhenDetailOverflows="true"/>
<box topBorder="1Point" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#000000" bottomBorder="1Point" bottomBorderColor="#000000"/>
<textElement textAlignment="Center">
<font/>
</textElement>
<text><![CDATA[本期库存金额]]></text>
</staticText>
</band>
</pageHeader>
<columnHeader>
<band height="0" isSplitAllowed="false" >
</band>
</columnHeader>
<detail>
<band height="15" isSplitAllowed="false" >
<textField isStretchWithOverflow="true" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
style="Arial_Normal"
x="0"
y="0"
width="39"
height="15"
key="textField"
stretchType="RelativeToTallestObject"
positionType="Float"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="1Point" leftBorderColor="#808080" rightBorder="1Point" rightBorderColor="#808080" bottomBorder="1Point" bottomBorderColor="#808080"/>
<textElement>
<font/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{base_code}.replaceFirst($F{base_code}.substring(0,3),"")]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
style="Arial_Normal"
x="39"
y="0"
width="39"
height="15"
key="textField"
stretchType="RelativeToTallestObject"
positionType="Float"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#808080" bottomBorder="1Point" bottomBorderColor="#808080"/>
<textElement>
<font/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{base_name}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
style="Arial_Normal"
x="78"
y="0"
width="39"
height="15"
key="textField"
stretchType="RelativeToTallestObject"
positionType="Float"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#808080" bottomBorder="1Point" bottomBorderColor="#808080"/>
<textElement>
<font/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{materiel_code}.replaceFirst($F{materiel_code}.substring(0,3),"")]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
style="Arial_Normal"
x="117"
y="0"
width="39"
height="15"
key="textField"
stretchType="RelativeToTallestObject"
positionType="Float"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#808080" bottomBorder="1Point" bottomBorderColor="#808080"/>
<textElement>
<font/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{materiel_name}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
style="Arial_Normal"
x="156"
y="0"
width="39"
height="15"
key="textField"
stretchType="RelativeToTallestObject"
positionType="Float"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#808080" bottomBorder="1Point" bottomBorderColor="#808080"/>
<textElement>
<font/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{spec}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
style="Arial_Normal"
x="195"
y="0"
width="39"
height="15"
key="textField"
stretchType="RelativeToTallestObject"
positionType="Float"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#808080" bottomBorder="1Point" bottomBorderColor="#808080"/>
<textElement>
<font/>
</textElement>
<textFieldExpression class="java.lang.String"><![CDATA[$F{main_unit_name}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
style="Arial_Normal"
x="234"
y="0"
width="39"
height="15"
key="textField"
stretchType="RelativeToTallestObject"
positionType="Float"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#808080" bottomBorder="1Point" bottomBorderColor="#808080"/>
<textElement>
<font/>
</textElement>
<textFieldExpression class="java.lang.Double"><![CDATA[$F{start_number}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
style="Arial_Normal"
x="273"
y="0"
width="39"
height="15"
key="textField"
stretchType="RelativeToTallestObject"
positionType="Float"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#808080" bottomBorder="1Point" bottomBorderColor="#808080"/>
<textElement>
<font/>
</textElement>
<textFieldExpression class="java.lang.Double"><![CDATA[$F{start_money}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
style="Arial_Normal"
x="312"
y="0"
width="39"
height="15"
key="textField"
stretchType="RelativeToTallestObject"
positionType="Float"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#808080" bottomBorder="1Point" bottomBorderColor="#808080"/>
<textElement>
<font/>
</textElement>
<textFieldExpression class="java.lang.Double"><![CDATA[$F{cg_in_number}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
style="Arial_Normal"
x="351"
y="0"
width="39"
height="15"
key="textField"
stretchType="RelativeToTallestObject"
positionType="Float"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#808080" bottomBorder="1Point" bottomBorderColor="#808080"/>
<textElement>
<font/>
</textElement>
<textFieldExpression class="java.lang.Double"><![CDATA[$F{cg_in_money}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
style="Arial_Normal"
x="390"
y="0"
width="39"
height="15"
key="textField"
stretchType="RelativeToTallestObject"
positionType="Float"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#808080" bottomBorder="1Point" bottomBorderColor="#808080"/>
<textElement>
<font/>
</textElement>
<textFieldExpression class="java.lang.Double"><![CDATA[$F{yddb_in_number}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
style="Arial_Normal"
x="429"
y="0"
width="39"
height="15"
key="textField"
stretchType="RelativeToTallestObject"
positionType="Float"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#808080" bottomBorder="1Point" bottomBorderColor="#808080"/>
<textElement>
<font/>
</textElement>
<textFieldExpression class="java.lang.Double"><![CDATA[$F{yddb_in_money}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
style="Arial_Normal"
x="468"
y="0"
width="39"
height="15"
key="textField"
stretchType="RelativeToTallestObject"
positionType="Float"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#808080" bottomBorder="1Point" bottomBorderColor="#808080"/>
<textElement>
<font/>
</textElement>
<textFieldExpression class="java.lang.Double"><![CDATA[$F{ly_out_number}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
style="Arial_Normal"
x="507"
y="0"
width="39"
height="15"
key="textField"
stretchType="RelativeToTallestObject"
positionType="Float"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#808080" bottomBorder="1Point" bottomBorderColor="#808080"/>
<textElement>
<font/>
</textElement>
<textFieldExpression class="java.lang.Double"><![CDATA[$F{ly_out_money}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
style="Arial_Normal"
x="546"
y="0"
width="39"
height="15"
key="textField"
stretchType="RelativeToTallestObject"
positionType="Float"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#808080" bottomBorder="1Point" bottomBorderColor="#808080"/>
<textElement>
<font/>
</textElement>
<textFieldExpression class="java.lang.Double"><![CDATA[$F{yddb_out_number}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
style="Arial_Normal"
x="585"
y="0"
width="39"
height="15"
key="textField"
stretchType="RelativeToTallestObject"
positionType="Float"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#808080" bottomBorder="1Point" bottomBorderColor="#808080"/>
<textElement>
<font/>
</textElement>
<textFieldExpression class="java.lang.Double"><![CDATA[$F{yddb_out_money}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
style="Arial_Normal"
x="624"
y="0"
width="39"
height="15"
key="textField"
stretchType="RelativeToTallestObject"
positionType="Float"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#808080" bottomBorder="1Point" bottomBorderColor="#808080"/>
<textElement>
<font/>
</textElement>
<textFieldExpression class="java.lang.Double"><![CDATA[$F{end_number}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true" pattern="###0.00" isBlankWhenNull="true" evaluationTime="Now" hyperlinkType="None" hyperlinkTarget="Self" >
<reportElement
style="Arial_Normal"
x="663"
y="0"
width="119"
height="15"
key="textField"
stretchType="RelativeToTallestObject"
positionType="Float"/>
<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="1Point" rightBorderColor="#808080" bottomBorder="1Point" bottomBorderColor="#808080"/>
<textElement>
<font/>
</textElement>
<textFieldExpression class="java.lang.Double"><![CDATA[$F{end_money}]]></textFieldExpression>
</textField>
</band>
</detail>
<columnFooter>
<band height="0" isSplitAllowed="false" >
</band>
</columnFooter>
<pageFooter>
<band height="0" isSplitAllowed="false" >
</band>
</pageFooter>
<summary>
<band height="0" isSplitAllowed="false" >
</band>
</summary>
</jasperReport>发表评论
- 浏览: 10555 次
- 性别:

- 来自: 北京

- 详细资料
搜索本博客
最近加入圈子
最新评论
-
请大家支招:关于大数据量 ...
http://hi.baidu.com/cliff77/blog/item/2a ...
-- by chen-516888 -
请大家支招:关于大数据量 ...
异步吧, 大概流程这样 用户申请查看某报表,后台把这个任务放到一个队列异步执行, ...
-- by soci -
请大家支招:关于大数据量 ...
谢谢 魔力猫咪报表总有时间段的,怎么能知道你要生成全部 还是生成某个时间段的呢? ...
-- by cuiyi.crazy -
请大家支招:关于大数据量 ...
无论如何,需求都有个时效性问题。你到底需要报表实时生成吗?而且如果你不是像监视器 ...
-- by 魔力猫咪 -
请大家支招:关于大数据量 ...
可是如果不重新计算,缓存的报表页面 或者 提前生成的PDF 和真实数据库不是不 ...
-- by cuiyi.crazy






评论排行榜