⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 xmlorders.jrxml

📁 用报表开发工具开发各种报表的小例子
💻 JRXML
字号:
<?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="XMLOrders"
		 columnCount="1"
		 printOrder="Vertical"
		 orientation="Portrait"
		 pageWidth="500"
		 pageHeight="842"
		 columnWidth="500"
		 columnSpacing="0"
		 leftMargin="0"
		 rightMargin="0"
		 topMargin="0"
		 bottomMargin="0"
		 whenNoDataType="NoPages"
		 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_Normal"
		isDefault="true"
		fontName="Arial"
		fontSize="8"
		isBold="false"
		isItalic="false"
		isUnderline="false"
		isStrikeThrough="false"
		pdfFontName="Helvetica"
		pdfEncoding="Cp1252"
		isPdfEmbedded="false"
	/>
	<style 
		name="Arial_Bold"
		isDefault="false"
		fontName="Arial"
		fontSize="8"
		isBold="true"
		isItalic="false"
		isUnderline="false"
		isStrikeThrough="false"
		pdfFontName="Helvetica-Bold"
		pdfEncoding="Cp1252"
		isPdfEmbedded="false"
	/>
	<style 
		name="Arial_Italic"
		isDefault="false"
		fontName="Arial"
		fontSize="8"
		isBold="false"
		isItalic="true"
		isUnderline="false"
		isStrikeThrough="false"
		pdfFontName="Helvetica-Oblique"
		pdfEncoding="Cp1252"
		isPdfEmbedded="false"
	/>

	<parameter name="CustomerID" isForPrompting="true" class="java.lang.String"/>
	<queryString language="xPath"><![CDATA[/Northwind/Orders[CustomerID='$P{CustomerID}']]]></queryString>

	<field name="Id" class="java.lang.String">
		<fieldDescription><![CDATA[OrderID]]></fieldDescription>
	</field>
	<field name="OrderDate" class="java.util.Date">
		<fieldDescription><![CDATA[OrderDate]]></fieldDescription>
	</field>
	<field name="ShipCity" class="java.lang.String">
		<fieldDescription><![CDATA[ShipCity]]></fieldDescription>
	</field>
	<field name="Freight" class="java.lang.Float">
		<fieldDescription><![CDATA[Freight]]></fieldDescription>
	</field>

	<variable name="TotalFreight" class="java.lang.Float" resetType="Report" calculation="Sum">
		<variableExpression><![CDATA[$F{Freight}]]></variableExpression>
	</variable>
		<background>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</background>
		<title>
			<band height="0"  isSplitAllowed="true" >
			</band>
		</title>
		<pageHeader>
			<band height="22"  isSplitAllowed="true" >
				<rectangle>
					<reportElement						x="0"						y="2"						width="500"						height="15"						forecolor="#CCFFFF"						backcolor="#CCFFFF"						key="rectangle"/>
					<graphicElement stretchType="NoStretch"/>
				</rectangle>
				<staticText>
					<reportElement						style="Arial_Bold"						mode="Opaque"						x="15"						y="2"						width="50"						height="15"						backcolor="#CCFFFF"						key="staticText"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
					<textElement textAlignment="Center">
						<font fontName="妤蜂綋_GB2312" size="12"/>
					</textElement>
				<text><![CDATA[搴忓彿]]></text>
				</staticText>
				<staticText>
					<reportElement						style="Arial_Bold"						mode="Opaque"						x="83"						y="2"						width="87"						height="15"						backcolor="#CCFFFF"						key="staticText"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
					<textElement textAlignment="Center">
						<font fontName="妤蜂綋_GB2312" size="12"/>
					</textElement>
				<text><![CDATA[璁㈠崟鏃堕棿]]></text>
				</staticText>
				<staticText>
					<reportElement						style="Arial_Bold"						mode="Opaque"						x="209"						y="2"						width="108"						height="15"						backcolor="#CCFFFF"						key="staticText"/>
					<box topBorder="None" topBorderColor="#000000" leftBorder="None" leftBorderColor="#000000" rightBorder="None" rightBorderColor="#000000" bottomBorder="None" bottomBorderColor="#000000"/>
					<textElement textAlignment="Center">
						<font fontName="妤蜂綋_GB2312" size="12"/>
					</textElement>
				<text><![CDATA[鐩

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -