<jasperReport name="TextReport" language="java" pageWidth="798" pageHeight="1000" whenNoDataType="AllSectionsNoDetail" columnWidth="714" leftMargin="42" rightMargin="42" topMargin="70" bottomMargin="70" uuid="f120a079-4f45-450c-8e21-7ac5a96f3c9a">
	<property name="net.sf.jasperreports.export.text.character.width" value="7.238"/>
	<property name="net.sf.jasperreports.export.text.character.height" value="13.948"/>
	<property name="com.jaspersoft.studio.data.defaultdataadapter" value="Sample DB"/>
	<import>net.sf.jasperreports.engine.*</import>
	<import>java.util.*</import>
	<import>net.sf.jasperreports.engine.data.*</import>
	<style name="FixSizeFontStyle" default="true" fontName="DejaVu Sans Mono" fontSize="12.0"/>
	<parameter name="ReportTitle" class="java.lang.String">
		<defaultValueExpression><![CDATA["Address Report"]]></defaultValueExpression>
	</parameter>
	<parameter name="FilterClause" class="java.lang.String">
		<defaultValueExpression><![CDATA["'Boston', 'Chicago', 'Oslo'"]]></defaultValueExpression>
	</parameter>
	<parameter name="OrderClause" class="java.lang.String">
		<defaultValueExpression><![CDATA["City"]]></defaultValueExpression>
	</parameter>
	<query language="sql"><![CDATA[SELECT * FROM Address WHERE City NOT IN ( $P!{FilterClause} ) ORDER BY $P!{OrderClause}]]></query>
	<field name="Id" class="java.lang.Integer"/>
	<field name="FirstName" class="java.lang.String"/>
	<field name="LastName" class="java.lang.String"/>
	<field name="Street" class="java.lang.String"/>
	<field name="City" class="java.lang.String"/>
	<variable name="CityNumber" resetType="Group" calculation="System" resetGroup="CityGroup" class="java.lang.Integer">
		<initialValueExpression><![CDATA[$V{CityNumber} == null ? 1 : ($V{CityNumber} + 1)]]></initialValueExpression>
	</variable>
	<group name="CityGroup" minHeightToStartNewPage="60">
		<expression><![CDATA[$F{City}]]></expression>
		<groupHeader>
			<band height="14">
				<element kind="textField" uuid="110b24bf-7dc5-4af9-b623-67f82573fbf1" key="textField" x="0" y="0" width="714" height="14" pattern="" blankWhenNull="false" hTextAlign="Left">
					<expression><![CDATA["  " + String.valueOf($V{CityNumber}) + ". " + String.valueOf($F{City})]]></expression>
				</element>
			</band>
		</groupHeader>
		<groupFooter>
			<band height="14">
				<element kind="staticText" uuid="66318406-d7a0-4d15-9cc9-fb2ac57be375" key="staticText" x="500" y="0" width="70" height="14" hTextAlign="Right">
					<text><![CDATA[Count : ]]></text>
				</element>
				<element kind="textField" uuid="f6500d0a-ec3d-46b1-9943-88a88608f408" key="textField" x="570" y="0" width="28" height="14" pattern="" blankWhenNull="false" hTextAlign="Right">
					<expression><![CDATA[$V{CityGroup_COUNT}]]></expression>
				</element>
			</band>
		</groupFooter>
	</group>
	<background/>
	<title height="42">
		<element kind="textField" uuid="8e28dd43-c5b6-46a7-aff2-e52c32250ee3" key="textField" x="0" y="0" width="760" height="42" pattern="" blankWhenNull="true" hTextAlign="Center" vTextAlign="Middle">
			<expression><![CDATA[$P{ReportTitle}]]></expression>
		</element>
	</title>
	<pageHeader height="14">
		<element kind="staticText" uuid="61dd3859-ca47-448a-bcf3-a6bba11b12b0" key="staticText" x="20" y="0" width="20" height="14" hTextAlign="Center">
			<text><![CDATA[ID]]></text>
		</element>
		<element kind="staticText" uuid="5ed65fe1-3580-4ab5-968d-f9359c929943" key="staticText" x="80" y="0" width="80" height="14" hTextAlign="Left">
			<text><![CDATA[Name]]></text>
		</element>
		<element kind="staticText" uuid="b07aaa33-d66b-4f2b-bb1a-f9a8d7304e8d" key="staticText" x="368" y="0" width="60" height="14" hTextAlign="Left">
			<text><![CDATA[Street]]></text>
		</element>
	</pageHeader>
	<columnHeader/>
	<detail>
		<band height="14">
			<element kind="textField" uuid="c90cfa48-4521-4ce7-8908-535e21a3cf50" key="textField" x="0" y="0" width="72" height="14" blankWhenNull="false" hTextAlign="Right">
				<expression><![CDATA[$F{Id}]]></expression>
			</element>
			<element kind="textField" uuid="3bbdc1e6-aeb4-49a0-90a2-b28949511ff4" key="textField" positionType="Float" x="80" y="0" width="280" height="14" textAdjust="StretchHeight" blankWhenNull="false" hTextAlign="Left">
				<expression><![CDATA[$F{FirstName} + " " + $F{LastName}]]></expression>
			</element>
			<element kind="textField" uuid="1231a5ca-2d35-4d7d-be19-0a8e64841197" key="textField" positionType="Float" x="368" y="0" width="348" height="14" textAdjust="StretchHeight" blankWhenNull="false" hTextAlign="Left">
				<expression><![CDATA[$F{Street}]]></expression>
			</element>
		</band>
	</detail>
	<columnFooter/>
	<pageFooter height="28">
		<element kind="textField" uuid="c95ef5af-5f5c-4ba8-a559-d33945b2237b" key="textField" x="310" y="0" width="100" height="14" blankWhenNull="false" hTextAlign="Right">
			<expression><![CDATA["Page " + String.valueOf($V{PAGE_NUMBER}) + " of"]]></expression>
		</element>
		<element kind="textField" uuid="732c1696-d798-4e1e-86a3-8ea0dac2d07b" key="textField" x="410" y="0" width="40" height="14" evaluationTime="Report" blankWhenNull="false" hTextAlign="Left">
			<expression><![CDATA[" " + String.valueOf($V{PAGE_NUMBER})]]></expression>
		</element>
	</pageFooter>
	<summary height="28">
		<element kind="textField" uuid="00864054-bf0c-4513-99c2-d617610e4dab" key="textField" x="290" y="0" width="180" height="14" textAdjust="StretchHeight" blankWhenNull="false" hTextAlign="Center">
			<expression><![CDATA["There were " + String.valueOf($V{REPORT_COUNT}) + " address records on this report."]]></expression>
		</element>
	</summary>
</jasperReport>
