热门文章 | 热门软件| 热门源码 | 热门电影 | 知识库 | 联系我们
软件 源码 教程 影视 健康 招聘
  HTML | JavaScript | ASP | PHP | JSP | NET | VB | VC | VF | Windows | Linux | Mysql | Mssql | Oracle | Struts 
当前位置: 创世纪计算机资源网 -> 文章频道 ->struts 
站内搜索:
webwork输出PDF,CSV,XLS,HTML(2)
作者:阿栋 来源:blog 整理日期:2007-8-13

        <group  name="username" >
            <groupExpression><![CDATA[$F{username}]]></groupExpression>
            <groupHeader>
            <band height="0"  isSplitAllowed="true" >
            </band>
            </groupHeader>
            <groupFooter>
            <band height="10"  isSplitAllowed="true" >
                <line direction="BottomUp">
                    <reportElement
                        x="1"
                        y="2"
                        width="534"
                        height="0"
                        key="line"/>
                    <graphicElement stretchType="NoStretch"/>
                </line>
            </band>
            </groupFooter>
        </group>
        <background>
            <band height="0"  isSplitAllowed="true" >
            </band>
        </background>
        <title>
            <band height="50"  isSplitAllowed="true" >
                <staticText>
                    <reportElement
                        mode="Opaque"
                        x="180"
                        y="7"
                        width="171"
                        height="35"
                        key="tomcat Tomcat User US"
                        printWhenGroupChanges="username"/>
                    <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
                    <textElement textAlignment="Center" verticalAlignment="Middle" rotation="None">
                        <font fontName="宋体" pdfFontName="STSong-Light" size="18" isPdfEmbedded ="false" pdfEncoding ="UniGB-UCS2-H"/>
                    </textElement>
                <text><![CDATA[用户报表]]></text>
                </staticText>
                <line direction="TopDown">
                    <reportElement
                        x="0"
                        y="48"
                        width="534"
                        height="0"
                        key="line"/>
                    <graphicElement stretchType="NoStretch"/>
                </line>
                <line direction="TopDown">
                    <reportElement
                        x="0"
                        y="3"
                        width="534"
                        height="0"
                        key="line"/>
                    <graphicElement stretchType="NoStretch"/>
                </line>
            </band>
        </title>
        <pageHeader>
            <band height="36"  isSplitAllowed="true" >
                <rectangle>
                    <reportElement
                        mode="Opaque"
                        x="0"
                        y="5"
                        width="535"
                        height="25"
                        forecolor="#8080FF"
                        backcolor="#000000"
                        key="rectangle"/>
                    <graphicElement stretchType="NoStretch" pen="None"/>
                </rectangle>
                <staticText>
                    <reportElement
                        x="2"
                        y="8"
                        width="97"
                        height="23"
                        forecolor="#FFFFFF"
                        backcolor="#FFFFFF"
                        key="staticText"/>
                    <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
                    <textElement>
                        <font pdfFontName="STSong-Light" size="16" pdfEncoding ="UniGB-UCS2-H"/>
                    </textElement>
                <text><![CDATA[username]]></text>
                </staticText>
                <line direction="BottomUp">
                    <reportElement
                        x="0"
                        y="9"
                        width="535"
                        height="0"
                        key="line"/>
                    <graphicElement stretchType="NoStretch"/>
                </line>
                <staticText>
                    <reportElement
                        x="241"
                        y="9"
                        width="116"
                        height="23"
                        forecolor="#FFFFFF"
                        backcolor="#FFFFFF"
                        key="staticText"
                        positionType="Float"/>
                    <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
                    <textElement>
                        <font pdfFontName="STSong-Light" size="16" pdfEncoding ="UniGB-UCS2-H"/>
                    </textElement>
                <text><![CDATA[Country]]></text>
                </staticText>
                <staticText>
                    <reportElement
                        x="108"
                        y="9"
                        width="103"
                        height="23"
                        forecolor="#FFFFFF"
                        key="staticText-1"/>
                    <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
                    <textElement>
                        <font pdfFontName="STSong-Light" size="16" pdfEncoding ="UniGB-UCS2-H"/>
                    </textElement>
                <text><![CDATA[name]]></text>
                </staticText>
            </band>
        </pageHeader>
        <columnHeader>
            <band height="0"  isSplitAllowed="true" >
            </band>
        </columnHeader>
        <detail>
            <band height="21"  isSplitAllowed="true" >
                <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
                    <reportElement
                        x="109"
                        y="2"
                        width="116"
                        height="17"
                        forecolor="#000000"
                        backcolor="#FFFFFF"
                        key="textField"/>
                    <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
                    <textElement>
                        <font pdfFontName="STSong-Light" size="12" pdfEncoding ="UniGB-UCS2-H"/>
                    </textElement>
                <textFieldExpression   class="java.lang.String"><![CDATA[$F{firstName}+" "+$F{lastName}]]></textFieldExpression>
                </textField>
                <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >
                    <reportElement
                        x="3"
                        y="3"
                        width="97"
                        height="18"
                        forecolor="#000000"
                        backcolor="#FFFFFF"
                        key="textField"/>
                    <box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
                    <textElement>
                        <font pdfFontName="STSong-Light" size="12" pdfEncoding ="UniGB-UCS2-H"/>
                    </textElement>
                <textFieldExpression   class="java.lang.String"><![CDATA[$F{username}]]></textFieldExpression>
                </textField>
                <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >

[1]  [2]  [3]  
相关文章