Seam reports and jasperreports problem...
hantsy Oct 24, 2011 6:44 AMIs there anyone used the Seam 3 reports module and jasperreports?
I have tried to used them in my project?
But every strange result in the pdf file in the browser.
<?xml version="1.0" encoding="UTF-8"?> <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="XlsDataSourceReport" pageWidth="595" pageHeight="842" columnWidth="515" leftMargin="40" rightMargin="40" topMargin="50" bottomMargin="50"> <property name="ireport.zoom" value="1.0"/> <property name="ireport.x" value="0"/> <property name="ireport.y" value="9"/> <style name="Sans_Normal" isDefault="true" fontName="Serif" fontSize="12" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> <style name="Sans_Bold" fontName="Serif" fontSize="12" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false"/> <style name="Sans_Italic" fontName="Serif" fontSize="12" isBold="false" isItalic="true" isUnderline="false" isStrikeThrough="false"/> <parameter name="forwardingCase" class="com.telopsys.siorc.forwarding.model.ForwardingCase"/> <field name="id" class="java.lang.Long"> <fieldDescription><![CDATA[id]]></fieldDescription> </field> <field name="name" class="java.lang.String"> <fieldDescription><![CDATA[name]]></fieldDescription> </field> <field name="description" class="java.lang.String"> <fieldDescription><![CDATA[description]]></fieldDescription> </field> <field name="quantity" class="java.lang.Integer"> <fieldDescription><![CDATA[quantity]]></fieldDescription> </field> <field name="waybill" class="java.lang.String"> <fieldDescription><![CDATA[waybill]]></fieldDescription> </field> <field name="unit" class="com.telopsys.siorc.model.Unit"> <fieldDescription><![CDATA[unit]]></fieldDescription> </field> <field name="customsPrice" class="java.lang.Double"> <fieldDescription><![CDATA[customsPrice]]></fieldDescription> </field> <field name="currency" class="com.telopsys.siorc.model.Currency"> <fieldDescription><![CDATA[currency]]></fieldDescription> </field> <sortField name="name" order="Descending"/> <title> <band height="140"> <line> <reportElement x="0" y="0" width="515" height="1"/> </line> <textField isBlankWhenNull="true"> <reportElement style="Sans_Normal" x="0" y="10" width="515" height="30"/> <textElement textAlignment="Center"> <font size="22"/> </textElement> <textFieldExpression><![CDATA[$P{forwardingCase}.getForwardingCaseSubject()]]></textFieldExpression> <anchorNameExpression><![CDATA["Title"]]></anchorNameExpression> </textField> <textField isBlankWhenNull="true"> <reportElement style="Sans_Bold" x="0" y="40" width="80" height="20"/> <textElement textAlignment="Right"/> <textFieldExpression><![CDATA["Vessel"]]></textFieldExpression> </textField> <textField isBlankWhenNull="true"> <reportElement style="Sans_Normal" x="85" y="40" width="160" height="20"/> <textElement textAlignment="Left"/> <textFieldExpression><![CDATA[$P{forwardingCase}.getVessel().getName()]]></textFieldExpression> </textField> <textField isBlankWhenNull="true"> <reportElement style="Sans_Bold" x="260" y="40" width="80" height="20"/> <textElement textAlignment="Right"/> <textFieldExpression><![CDATA["Port"]]></textFieldExpression> </textField> <textField isBlankWhenNull="true"> <reportElement style="Sans_Normal" x="345" y="40" width="160" height="20"/> <textElement textAlignment="Left"/> <textFieldExpression><![CDATA[$P{forwardingCase}.getPort().getName()]]></textFieldExpression> </textField> <textField isBlankWhenNull="true"> <reportElement style="Sans_Bold" x="0" y="60" width="80" height="20"/> <textElement textAlignment="Right"/> <textFieldExpression><![CDATA["Forwarder"]]></textFieldExpression> </textField> <textField isBlankWhenNull="true"> <reportElement style="Sans_Normal" x="85" y="60" width="160" height="20"/> <textElement textAlignment="Left"/> <textFieldExpression><![CDATA[$P{forwardingCase}.getForwarder().getFullname()]]></textFieldExpression> </textField> <textField isBlankWhenNull="true"> <reportElement style="Sans_Bold" x="260" y="60" width="80" height="20"/> <textElement textAlignment="Right"/> <textFieldExpression><![CDATA["Agent"]]></textFieldExpression> </textField> <textField isBlankWhenNull="true"> <reportElement style="Sans_Normal" x="345" y="60" width="160" height="20"/> <textElement textAlignment="Left"/> <textFieldExpression><![CDATA[$P{forwardingCase}.getAgent().getFullname()]]></textFieldExpression> </textField> <textField isBlankWhenNull="true"> <reportElement style="Sans_Bold" x="0" y="80" width="80" height="20"/> <textElement textAlignment="Right"/> <textFieldExpression><![CDATA["WayBill"]]></textFieldExpression> </textField> <textField isBlankWhenNull="true"> <reportElement style="Sans_Normal" x="85" y="80" width="160" height="20"/> <textElement textAlignment="Left"/> <textFieldExpression><![CDATA[$P{forwardingCase}.getWaybill()]]></textFieldExpression> </textField> <textField isBlankWhenNull="true"> <reportElement style="Sans_Bold" x="260" y="80" width="80" height="20"/> <textElement textAlignment="Right"/> <textFieldExpression><![CDATA["Quote"]]></textFieldExpression> </textField> <textField isBlankWhenNull="true"> <reportElement style="Sans_Normal" x="345" y="80" width="160" height="20"/> <textElement textAlignment="Left"/> <textFieldExpression><![CDATA[String.valueOf($P{forwardingCase}.getQuote())]]></textFieldExpression> </textField> <textField isBlankWhenNull="true"> <reportElement style="Sans_Bold" x="0" y="100" width="80" height="20"/> <textElement textAlignment="Right"/> <textFieldExpression><![CDATA["Invoice"]]></textFieldExpression> </textField> <textField isBlankWhenNull="true"> <reportElement style="Sans_Normal" x="85" y="100" width="160" height="20"/> <textElement textAlignment="Left"/> <textFieldExpression><![CDATA[String.valueOf($P{forwardingCase}.getInvoice())]]></textFieldExpression> </textField> </band> </title> <pageHeader> <band height="20"> <staticText> <reportElement style="Sans_Bold" mode="Opaque" x="0" y="5" width="60" height="15" forecolor="#FFFFFF" backcolor="#000000"/> <textElement textAlignment="Center"/> <text><![CDATA[Name]]></text> </staticText> <staticText> <reportElement style="Sans_Bold" mode="Opaque" x="60" y="5" width="140" height="15" forecolor="#FFFFFF" backcolor="#000000"/> <textElement textAlignment="Center"/> <text><![CDATA[Description]]></text> </staticText> <staticText> <reportElement style="Sans_Bold" mode="Opaque" x="200" y="5" width="60" height="15" forecolor="#FFFFFF" backcolor="#000000"/> <textElement textAlignment="Center"/> <text><![CDATA[Quantity]]></text> </staticText> <staticText> <reportElement style="Sans_Bold" mode="Opaque" x="260" y="5" width="60" height="15" forecolor="#FFFFFF" backcolor="#000000"/> <textElement textAlignment="Center"/> <text><![CDATA[WayBill]]></text> </staticText> <staticText> <reportElement style="Sans_Bold" mode="Opaque" x="320" y="5" width="60" height="15" forecolor="#FFFFFF" backcolor="#000000"/> <textElement/> <text><![CDATA[Unit]]></text> </staticText> <staticText> <reportElement style="Sans_Bold" mode="Opaque" x="380" y="5" width="60" height="15" forecolor="#FFFFFF" backcolor="#000000"/> <textElement textAlignment="Center"/> <text><![CDATA[Price]]></text> </staticText> <staticText> <reportElement style="Sans_Bold" mode="Opaque" x="440" y="5" width="75" height="15" forecolor="#FFFFFF" backcolor="#000000"/> <textElement textAlignment="Center"/> <text><![CDATA[Currency]]></text> </staticText> </band> </pageHeader> <detail> <band height="15"> <textField isStretchWithOverflow="true"> <reportElement positionType="Float" x="0" y="0" width="60" height="15"/> <box leftPadding="5" rightPadding="5"> <leftPen lineWidth="0.5"/> <bottomPen lineWidth="0.5"/> </box> <textElement textAlignment="Left"/> <textFieldExpression><![CDATA[$F{name}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true"> <reportElement positionType="Float" x="60" y="0" width="140" height="15"/> <box leftPadding="5" rightPadding="5"> <leftPen lineWidth="0.5"/> <bottomPen lineWidth="0.5"/> </box> <textElement textAlignment="Left"/> <textFieldExpression><![CDATA[$F{description}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true"> <reportElement positionType="Float" x="200" y="0" width="60" height="15"/> <box leftPadding="5" rightPadding="5"> <leftPen lineWidth="0.5"/> <bottomPen lineWidth="0.5"/> </box> <textElement/> <textFieldExpression><![CDATA[""+ String.valueOf($F{quantity})]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true"> <reportElement positionType="Float" x="260" y="0" width="60" height="15"/> <box leftPadding="5" rightPadding="5"> <leftPen lineWidth="0.5"/> <bottomPen lineWidth="0.5"/> </box> <textElement/> <textFieldExpression><![CDATA[$F{waybill}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true"> <reportElement positionType="Float" x="320" y="0" width="60" height="15"/> <box leftPadding="5" rightPadding="5"> <leftPen lineWidth="0.5"/> <bottomPen lineWidth="0.5"/> </box> <textElement/> <textFieldExpression><![CDATA[$F{unit}.getName()]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true"> <reportElement positionType="Float" x="380" y="0" width="60" height="15"/> <box leftPadding="5" rightPadding="5"> <leftPen lineWidth="0.5"/> <bottomPen lineWidth="0.5"/> </box> <textElement/> <textFieldExpression><![CDATA[String.valueOf($F{customsPrice})]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true"> <reportElement positionType="Float" x="440" y="0" width="75" height="15"/> <box leftPadding="5" rightPadding="5"> <leftPen lineWidth="0.5"/> <bottomPen lineWidth="0.5"/> <rightPen lineWidth="0.5"/> </box> <textElement/> <textFieldExpression><![CDATA[""+ $F{currency}.getName()+"("+$F{currency}.getCode()+")"]]></textFieldExpression> </textField> </band> </detail> <pageFooter> <band height="40"> <line> <reportElement x="0" y="10" width="515" height="1"/> </line> <textField> <reportElement x="200" y="20" width="80" height="15"/> <textElement textAlignment="Right"/> <textFieldExpression><![CDATA["Page " + String.valueOf($V{PAGE_NUMBER}) + " of"]]></textFieldExpression> </textField> <textField evaluationTime="Report"> <reportElement x="280" y="20" width="75" height="15"/> <textElement/> <textFieldExpression><![CDATA[" " + String.valueOf($V{PAGE_NUMBER})]]></textFieldExpression> </textField> </band> </pageFooter> <lastPageFooter> <band height="60"> <textField> <reportElement x="0" y="10" width="515" height="15"/> <textElement textAlignment="Center"/> <textFieldExpression><![CDATA["There were " + String.valueOf($V{REPORT_COUNT}) + " address records on this report."]]></textFieldExpression> <anchorNameExpression><![CDATA["Summary"]]></anchorNameExpression> </textField> <line> <reportElement x="0" y="30" width="515" height="1"/> </line> <textField> <reportElement x="200" y="40" width="80" height="15"/> <textElement textAlignment="Right"/> <textFieldExpression><![CDATA["Page " + String.valueOf($V{PAGE_NUMBER}) + " of"]]></textFieldExpression> </textField> <textField evaluationTime="Report"> <reportElement x="280" y="40" width="75" height="15"/> <textElement/> <textFieldExpression><![CDATA[" " + String.valueOf($V{PAGE_NUMBER})]]></textFieldExpression> </textField> </band> </lastPageFooter> </jasperReport>
The text in the page Hear and footer are not displayed.