Jasper reports iReport designer 4.0.2不使用;“打印重复值”;待售订单行
我在OpenERP7.0中查看了许多来自互联网的参考链接,以实现jasper报告,但我没有找到任何关于该报告打印重复行的内容 我想通过jasper reporting Tools(iReport 4.0.2)将销售订单行打印为我的销售订单报告中的重复值 我在报告中只打印了一行销售订单行。 我的问题是如何使用Jasper报告工具打印多个销售订单行 销售订单SO008: 使用Jasper iReport 4.0.2工具打印的销售订单报告:Jasper reports iReport designer 4.0.2不使用;“打印重复值”;待售订单行,jasper-reports,report,odoo,openerp-7,Jasper Reports,Report,Odoo,Openerp 7,我在OpenERP7.0中查看了许多来自互联网的参考链接,以实现jasper报告,但我没有找到任何关于该报告打印重复行的内容 我想通过jasper reporting Tools(iReport 4.0.2)将销售订单行打印为我的销售订单报告中的重复值 我在报告中只打印了一行销售订单行。 我的问题是如何使用Jasper报告工具打印多个销售订单行 销售订单SO008: 使用Jasper iReport 4.0.2工具打印的销售订单报告: 我正在使用xml文件进行演示 如果您使用eclips来执行
我正在使用xml文件进行演示 如果您使用eclips来执行此操作,那么您将创建数据文件的第一个适配器(xml、db、csv等),如果您已经配置了japser或ireport,则在“文件”菜单中创建适配器选项 之后,选择genrate报告的模板,在下一级选择adpter,然后从数据源(如xml、csv等)中选择元素或数据字段 我正在将xml和jasper报告文件与代码和预览放在一起 simple_Blue.jrxml
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.1.1.final using JasperReports Library version 6.1.1 -->
<!-- 2015-09-22T11:03:31 -->
<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="Simple_Blue" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="cad2717b-4892-4b9b-b88d-6a498ba5c63d">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="NEW_DATAADAPTER1.xml"/>
<queryString language="xPath">
<![CDATA[/root/item]]>
</queryString>
<field name="id_1" class="java.lang.String">
<fieldDescription><![CDATA[@id]]></fieldDescription>
</field>
<field name="name_1" class="java.lang.String">
<fieldDescription><![CDATA[name]]></fieldDescription>
</field>
<field name="price_1" class="java.lang.String">
<fieldDescription><![CDATA[price]]></fieldDescription>
</field>
<background>
<band/>
</background>
<title>
<band height="72">
<frame>
<reportElement mode="Opaque" x="-20" y="-20" width="595" height="92" backcolor="#006699" uuid="c001d49d-79c2-4348-a3cd-2879583050ee"/>
<staticText>
<reportElement x="20" y="20" width="234" height="43" forecolor="#FFFFFF" uuid="6a037f28-72c8-4a1a-838b-87c3717e514d"/>
<textElement>
<font size="34" isBold="true"/>
</textElement>
<text><![CDATA[TITLE]]></text>
</staticText>
<staticText>
<reportElement x="395" y="43" width="180" height="20" forecolor="#FFFFFF" uuid="eaf746c8-e90d-4037-8277-294c4097ecca"/>
<textElement textAlignment="Right">
<font size="14" isBold="false"/>
</textElement>
<text><![CDATA[Add a description here]]></text>
</staticText>
</frame>
</band>
</title>
<pageHeader>
<band height="13"/>
</pageHeader>
<columnHeader>
<band height="21">
<line>
<reportElement x="-20" y="20" width="595" height="1" forecolor="#666666" uuid="d5b453e8-1a8b-4177-ab6c-15aa584044f0"/>
</line>
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="185" height="20" forecolor="#006699" backcolor="#E6E6E6" uuid="a2ea42b0-c324-4c0c-94bb-1441747bfe2d"/>
<textElement textAlignment="Center">
<font size="14" isBold="true"/>
</textElement>
<text><![CDATA[id_1]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="185" y="0" width="185" height="20" forecolor="#006699" backcolor="#E6E6E6" uuid="8d72f4c9-6fd5-4700-9a5e-13434c64558d"/>
<textElement textAlignment="Center">
<font size="14" isBold="true"/>
</textElement>
<text><![CDATA[name_1]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="370" y="0" width="185" height="20" forecolor="#006699" backcolor="#E6E6E6" uuid="66dce252-f290-405f-ac8a-2f11cc065bb3"/>
<textElement textAlignment="Center">
<font size="14" isBold="true"/>
</textElement>
<text><![CDATA[price_1]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="20">
<line>
<reportElement positionType="FixRelativeToBottom" x="0" y="19" width="555" height="1" uuid="abfcf8b6-867c-46fb-b320-1fb3961e00e2"/>
</line>
<textField isStretchWithOverflow="true">
<reportElement x="0" y="0" width="185" height="20" uuid="b62d2690-c680-42ef-ad61-930ecf0c5512"/>
<textElement>
<font size="14"/>
</textElement>
<textFieldExpression><![CDATA[$F{id_1}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement x="185" y="0" width="185" height="20" uuid="97605ce2-8f11-4e21-a8f7-d1a7d4a4f3da"/>
<textElement>
<font size="14"/>
</textElement>
<textFieldExpression><![CDATA[$F{name_1}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement x="370" y="0" width="185" height="20" uuid="29b984d4-6fe4-43b4-83d3-54e168fc2c17"/>
<textElement>
<font size="14"/>
</textElement>
<textFieldExpression><![CDATA[$F{price_1}]]></textFieldExpression>
</textField>
</band>
</detail>
<summary>
<band/>
</summary>
</jasperReport>
<root>
<item id="1">
<name>House Box</name>
<price>5000</price>
</item>
<item id="2">
<name>New Box</name>
<price>11000</price>
</item>
<item id="3">
<name>Kepp Box</name>
<price>9000</price>
</item>
<item id="4">
<name>Sound Box</name>
<price>7000</price>
</item>
<item id="5">
<name>Desh Box</name>
<price>3000</price>
</item>
<item id="6">
<name>Cloud Box</name>
<price>1000</price>
</item>
</root>
并且xml文件是
temp.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.1.1.final using JasperReports Library version 6.1.1 -->
<!-- 2015-09-22T11:03:31 -->
<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="Simple_Blue" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="cad2717b-4892-4b9b-b88d-6a498ba5c63d">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="NEW_DATAADAPTER1.xml"/>
<queryString language="xPath">
<![CDATA[/root/item]]>
</queryString>
<field name="id_1" class="java.lang.String">
<fieldDescription><![CDATA[@id]]></fieldDescription>
</field>
<field name="name_1" class="java.lang.String">
<fieldDescription><![CDATA[name]]></fieldDescription>
</field>
<field name="price_1" class="java.lang.String">
<fieldDescription><![CDATA[price]]></fieldDescription>
</field>
<background>
<band/>
</background>
<title>
<band height="72">
<frame>
<reportElement mode="Opaque" x="-20" y="-20" width="595" height="92" backcolor="#006699" uuid="c001d49d-79c2-4348-a3cd-2879583050ee"/>
<staticText>
<reportElement x="20" y="20" width="234" height="43" forecolor="#FFFFFF" uuid="6a037f28-72c8-4a1a-838b-87c3717e514d"/>
<textElement>
<font size="34" isBold="true"/>
</textElement>
<text><![CDATA[TITLE]]></text>
</staticText>
<staticText>
<reportElement x="395" y="43" width="180" height="20" forecolor="#FFFFFF" uuid="eaf746c8-e90d-4037-8277-294c4097ecca"/>
<textElement textAlignment="Right">
<font size="14" isBold="false"/>
</textElement>
<text><![CDATA[Add a description here]]></text>
</staticText>
</frame>
</band>
</title>
<pageHeader>
<band height="13"/>
</pageHeader>
<columnHeader>
<band height="21">
<line>
<reportElement x="-20" y="20" width="595" height="1" forecolor="#666666" uuid="d5b453e8-1a8b-4177-ab6c-15aa584044f0"/>
</line>
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="185" height="20" forecolor="#006699" backcolor="#E6E6E6" uuid="a2ea42b0-c324-4c0c-94bb-1441747bfe2d"/>
<textElement textAlignment="Center">
<font size="14" isBold="true"/>
</textElement>
<text><![CDATA[id_1]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="185" y="0" width="185" height="20" forecolor="#006699" backcolor="#E6E6E6" uuid="8d72f4c9-6fd5-4700-9a5e-13434c64558d"/>
<textElement textAlignment="Center">
<font size="14" isBold="true"/>
</textElement>
<text><![CDATA[name_1]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="370" y="0" width="185" height="20" forecolor="#006699" backcolor="#E6E6E6" uuid="66dce252-f290-405f-ac8a-2f11cc065bb3"/>
<textElement textAlignment="Center">
<font size="14" isBold="true"/>
</textElement>
<text><![CDATA[price_1]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="20">
<line>
<reportElement positionType="FixRelativeToBottom" x="0" y="19" width="555" height="1" uuid="abfcf8b6-867c-46fb-b320-1fb3961e00e2"/>
</line>
<textField isStretchWithOverflow="true">
<reportElement x="0" y="0" width="185" height="20" uuid="b62d2690-c680-42ef-ad61-930ecf0c5512"/>
<textElement>
<font size="14"/>
</textElement>
<textFieldExpression><![CDATA[$F{id_1}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement x="185" y="0" width="185" height="20" uuid="97605ce2-8f11-4e21-a8f7-d1a7d4a4f3da"/>
<textElement>
<font size="14"/>
</textElement>
<textFieldExpression><![CDATA[$F{name_1}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement x="370" y="0" width="185" height="20" uuid="29b984d4-6fe4-43b4-83d3-54e168fc2c17"/>
<textElement>
<font size="14"/>
</textElement>
<textFieldExpression><![CDATA[$F{price_1}]]></textFieldExpression>
</textField>
</band>
</detail>
<summary>
<band/>
</summary>
</jasperReport>
<root>
<item id="1">
<name>House Box</name>
<price>5000</price>
</item>
<item id="2">
<name>New Box</name>
<price>11000</price>
</item>
<item id="3">
<name>Kepp Box</name>
<price>9000</price>
</item>
<item id="4">
<name>Sound Box</name>
<price>7000</price>
</item>
<item id="5">
<name>Desh Box</name>
<price>3000</price>
</item>
<item id="6">
<name>Cloud Box</name>
<price>1000</price>
</item>
</root>
房箱
5000
新盒子
11000
凯普盒子
9000
音箱
7000
脱毛盒
3000
云盒
1000
很抱歉,我有一张图片,但我没有分享hear,因为我现在没有声誉。显示我正在通过google drive共享它,公共链接是:我正在将hear演示与xml文件一起放入 如果您使用eclips来执行此操作,那么您将创建数据文件的第一个适配器(xml、db、csv等),如果您已经配置了japser或ireport,则在“文件”菜单中创建适配器选项 之后,选择genrate报告的模板,在下一级选择adpter,然后从数据源(如xml、csv等)中选择元素或数据字段 我正在将xml和jasper报告文件与代码和预览放在一起 simple_Blue.jrxml
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.1.1.final using JasperReports Library version 6.1.1 -->
<!-- 2015-09-22T11:03:31 -->
<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="Simple_Blue" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="cad2717b-4892-4b9b-b88d-6a498ba5c63d">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="NEW_DATAADAPTER1.xml"/>
<queryString language="xPath">
<![CDATA[/root/item]]>
</queryString>
<field name="id_1" class="java.lang.String">
<fieldDescription><![CDATA[@id]]></fieldDescription>
</field>
<field name="name_1" class="java.lang.String">
<fieldDescription><![CDATA[name]]></fieldDescription>
</field>
<field name="price_1" class="java.lang.String">
<fieldDescription><![CDATA[price]]></fieldDescription>
</field>
<background>
<band/>
</background>
<title>
<band height="72">
<frame>
<reportElement mode="Opaque" x="-20" y="-20" width="595" height="92" backcolor="#006699" uuid="c001d49d-79c2-4348-a3cd-2879583050ee"/>
<staticText>
<reportElement x="20" y="20" width="234" height="43" forecolor="#FFFFFF" uuid="6a037f28-72c8-4a1a-838b-87c3717e514d"/>
<textElement>
<font size="34" isBold="true"/>
</textElement>
<text><![CDATA[TITLE]]></text>
</staticText>
<staticText>
<reportElement x="395" y="43" width="180" height="20" forecolor="#FFFFFF" uuid="eaf746c8-e90d-4037-8277-294c4097ecca"/>
<textElement textAlignment="Right">
<font size="14" isBold="false"/>
</textElement>
<text><![CDATA[Add a description here]]></text>
</staticText>
</frame>
</band>
</title>
<pageHeader>
<band height="13"/>
</pageHeader>
<columnHeader>
<band height="21">
<line>
<reportElement x="-20" y="20" width="595" height="1" forecolor="#666666" uuid="d5b453e8-1a8b-4177-ab6c-15aa584044f0"/>
</line>
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="185" height="20" forecolor="#006699" backcolor="#E6E6E6" uuid="a2ea42b0-c324-4c0c-94bb-1441747bfe2d"/>
<textElement textAlignment="Center">
<font size="14" isBold="true"/>
</textElement>
<text><![CDATA[id_1]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="185" y="0" width="185" height="20" forecolor="#006699" backcolor="#E6E6E6" uuid="8d72f4c9-6fd5-4700-9a5e-13434c64558d"/>
<textElement textAlignment="Center">
<font size="14" isBold="true"/>
</textElement>
<text><![CDATA[name_1]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="370" y="0" width="185" height="20" forecolor="#006699" backcolor="#E6E6E6" uuid="66dce252-f290-405f-ac8a-2f11cc065bb3"/>
<textElement textAlignment="Center">
<font size="14" isBold="true"/>
</textElement>
<text><![CDATA[price_1]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="20">
<line>
<reportElement positionType="FixRelativeToBottom" x="0" y="19" width="555" height="1" uuid="abfcf8b6-867c-46fb-b320-1fb3961e00e2"/>
</line>
<textField isStretchWithOverflow="true">
<reportElement x="0" y="0" width="185" height="20" uuid="b62d2690-c680-42ef-ad61-930ecf0c5512"/>
<textElement>
<font size="14"/>
</textElement>
<textFieldExpression><![CDATA[$F{id_1}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement x="185" y="0" width="185" height="20" uuid="97605ce2-8f11-4e21-a8f7-d1a7d4a4f3da"/>
<textElement>
<font size="14"/>
</textElement>
<textFieldExpression><![CDATA[$F{name_1}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement x="370" y="0" width="185" height="20" uuid="29b984d4-6fe4-43b4-83d3-54e168fc2c17"/>
<textElement>
<font size="14"/>
</textElement>
<textFieldExpression><![CDATA[$F{price_1}]]></textFieldExpression>
</textField>
</band>
</detail>
<summary>
<band/>
</summary>
</jasperReport>
<root>
<item id="1">
<name>House Box</name>
<price>5000</price>
</item>
<item id="2">
<name>New Box</name>
<price>11000</price>
</item>
<item id="3">
<name>Kepp Box</name>
<price>9000</price>
</item>
<item id="4">
<name>Sound Box</name>
<price>7000</price>
</item>
<item id="5">
<name>Desh Box</name>
<price>3000</price>
</item>
<item id="6">
<name>Cloud Box</name>
<price>1000</price>
</item>
</root>
并且xml文件是
temp.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.1.1.final using JasperReports Library version 6.1.1 -->
<!-- 2015-09-22T11:03:31 -->
<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="Simple_Blue" pageWidth="595" pageHeight="842" columnWidth="535" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="cad2717b-4892-4b9b-b88d-6a498ba5c63d">
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="NEW_DATAADAPTER1.xml"/>
<queryString language="xPath">
<![CDATA[/root/item]]>
</queryString>
<field name="id_1" class="java.lang.String">
<fieldDescription><![CDATA[@id]]></fieldDescription>
</field>
<field name="name_1" class="java.lang.String">
<fieldDescription><![CDATA[name]]></fieldDescription>
</field>
<field name="price_1" class="java.lang.String">
<fieldDescription><![CDATA[price]]></fieldDescription>
</field>
<background>
<band/>
</background>
<title>
<band height="72">
<frame>
<reportElement mode="Opaque" x="-20" y="-20" width="595" height="92" backcolor="#006699" uuid="c001d49d-79c2-4348-a3cd-2879583050ee"/>
<staticText>
<reportElement x="20" y="20" width="234" height="43" forecolor="#FFFFFF" uuid="6a037f28-72c8-4a1a-838b-87c3717e514d"/>
<textElement>
<font size="34" isBold="true"/>
</textElement>
<text><![CDATA[TITLE]]></text>
</staticText>
<staticText>
<reportElement x="395" y="43" width="180" height="20" forecolor="#FFFFFF" uuid="eaf746c8-e90d-4037-8277-294c4097ecca"/>
<textElement textAlignment="Right">
<font size="14" isBold="false"/>
</textElement>
<text><![CDATA[Add a description here]]></text>
</staticText>
</frame>
</band>
</title>
<pageHeader>
<band height="13"/>
</pageHeader>
<columnHeader>
<band height="21">
<line>
<reportElement x="-20" y="20" width="595" height="1" forecolor="#666666" uuid="d5b453e8-1a8b-4177-ab6c-15aa584044f0"/>
</line>
<staticText>
<reportElement mode="Opaque" x="0" y="0" width="185" height="20" forecolor="#006699" backcolor="#E6E6E6" uuid="a2ea42b0-c324-4c0c-94bb-1441747bfe2d"/>
<textElement textAlignment="Center">
<font size="14" isBold="true"/>
</textElement>
<text><![CDATA[id_1]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="185" y="0" width="185" height="20" forecolor="#006699" backcolor="#E6E6E6" uuid="8d72f4c9-6fd5-4700-9a5e-13434c64558d"/>
<textElement textAlignment="Center">
<font size="14" isBold="true"/>
</textElement>
<text><![CDATA[name_1]]></text>
</staticText>
<staticText>
<reportElement mode="Opaque" x="370" y="0" width="185" height="20" forecolor="#006699" backcolor="#E6E6E6" uuid="66dce252-f290-405f-ac8a-2f11cc065bb3"/>
<textElement textAlignment="Center">
<font size="14" isBold="true"/>
</textElement>
<text><![CDATA[price_1]]></text>
</staticText>
</band>
</columnHeader>
<detail>
<band height="20">
<line>
<reportElement positionType="FixRelativeToBottom" x="0" y="19" width="555" height="1" uuid="abfcf8b6-867c-46fb-b320-1fb3961e00e2"/>
</line>
<textField isStretchWithOverflow="true">
<reportElement x="0" y="0" width="185" height="20" uuid="b62d2690-c680-42ef-ad61-930ecf0c5512"/>
<textElement>
<font size="14"/>
</textElement>
<textFieldExpression><![CDATA[$F{id_1}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement x="185" y="0" width="185" height="20" uuid="97605ce2-8f11-4e21-a8f7-d1a7d4a4f3da"/>
<textElement>
<font size="14"/>
</textElement>
<textFieldExpression><![CDATA[$F{name_1}]]></textFieldExpression>
</textField>
<textField isStretchWithOverflow="true">
<reportElement x="370" y="0" width="185" height="20" uuid="29b984d4-6fe4-43b4-83d3-54e168fc2c17"/>
<textElement>
<font size="14"/>
</textElement>
<textFieldExpression><![CDATA[$F{price_1}]]></textFieldExpression>
</textField>
</band>
</detail>
<summary>
<band/>
</summary>
</jasperReport>
<root>
<item id="1">
<name>House Box</name>
<price>5000</price>
</item>
<item id="2">
<name>New Box</name>
<price>11000</price>
</item>
<item id="3">
<name>Kepp Box</name>
<price>9000</price>
</item>
<item id="4">
<name>Sound Box</name>
<price>7000</price>
</item>
<item id="5">
<name>Desh Box</name>
<price>3000</price>
</item>
<item id="6">
<name>Cloud Box</name>
<price>1000</price>
</item>
</root>
房箱
5000
新盒子
11000
凯普盒子
9000
音箱
7000
脱毛盒
3000
云盒
1000
很抱歉,我有一张图片,但我没有分享听力,因为我现在没有声誉显示我正在通过google drive共享它,公共链接是: