<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">

<jasperReport name="HyperlinkReport" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="30" bottomMargin="30" isTitleNewPage="true" isSummaryNewPage="true">
	<background>
		<band height="742">
			<image scaleImage="Clip" vAlign="Bottom">
				<reportElement x="0" y="0" width="150" height="742"/>
				<graphicElement/>
				<imageExpression class="java.lang.String"><![CDATA["jr.watermark.gif"]]></imageExpression>
			</image>
		</band>
	</background>
	<title>
		<band height="145">
			<rectangle>
				<reportElement x="0" y="0" width="555" height="145" backcolor="#ff99cc"/>
				<graphicElement/>
			</rectangle>
			<textField>
				<reportElement mode="Opaque" x="5" y="5" width="450" height="20" backcolor="#ff99cc"/>
				<textElement>
					<font size="14" isBold="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["This is the TITLE section"]]></textFieldExpression>
				<anchorNameExpression><![CDATA["title"]]></anchorNameExpression>
			</textField>
			<textField hyperlinkType="LocalAnchor">
				<reportElement x="5" y="35" width="300" height="15" forecolor="#ff"/>
				<textElement/>
				<textFieldExpression class="java.lang.String"><![CDATA["  >> Click here to go to the summary section."]]></textFieldExpression>
				<hyperlinkAnchorExpression><![CDATA["summary"]]></hyperlinkAnchorExpression>
			</textField>
			<textField hyperlinkType="LocalPage">
				<reportElement x="5" y="65" width="300" height="15" forecolor="#8000"/>
				<textElement/>
				<textFieldExpression class="java.lang.String"><![CDATA["  >> Click here to go to the second page."]]></textFieldExpression>
				<hyperlinkPageExpression><![CDATA[new Integer(2)]]></hyperlinkPageExpression>
			</textField>
			<textField hyperlinkType="Reference" hyperlinkTarget="Blank">
				<reportElement x="5" y="95" width="200" height="15"/>
				<textElement/>
				<textFieldExpression class="java.lang.String"><![CDATA["  >> Click here to go to www.google.com"]]></textFieldExpression>
				<hyperlinkReferenceExpression><![CDATA["http://www.google.com"]]></hyperlinkReferenceExpression>
			</textField>
			<image hAlign="Center" vAlign="Middle" hyperlinkType="Reference" hyperlinkTarget="Blank">
				<reportElement x="230" y="90" width="200" height="30"/>
				<graphicElement/>
				<imageExpression class="java.lang.String"><![CDATA["google.gif"]]></imageExpression>
				<hyperlinkReferenceExpression><![CDATA["http://www.google.com"]]></hyperlinkReferenceExpression>
			</image>
			<textField hyperlinkType="RemoteAnchor">
				<reportElement x="5" y="125" width="350" height="15"/>
				<textElement/>
				<textFieldExpression class="java.lang.String"><![CDATA["  >> Click here to go to another PDF file (in fact, we use the same file)."]]></textFieldExpression>
				<hyperlinkReferenceExpression><![CDATA["./HyperlinkReport.pdf"]]></hyperlinkReferenceExpression>
				<hyperlinkAnchorExpression><![CDATA["title"]]></hyperlinkAnchorExpression>
			</textField>
		</band>
	</title>
	<pageHeader>
		<band height="145">
			<rectangle>
				<reportElement x="0" y="0" width="555" height="145" backcolor="#ccffcc"/>
				<graphicElement/>
			</rectangle>
			<textField>
				<reportElement mode="Opaque" x="5" y="5" width="450" height="20" backcolor="#ccffcc"/>
				<textElement>
					<font size="14" isBold="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["This is the HEADER section of the page number " + String.valueOf($V{PAGE_NUMBER}) + "."]]></textFieldExpression>
				<anchorNameExpression><![CDATA["pageHeader_" + String.valueOf($V{PAGE_NUMBER})]]></anchorNameExpression>
			</textField>
			<textField hyperlinkType="LocalAnchor">
				<reportElement x="5" y="35" width="300" height="15" forecolor="#ff0000"/>
				<textElement/>
				<textFieldExpression class="java.lang.String"><![CDATA["  >> Click here to go to the title section."]]></textFieldExpression>
				<hyperlinkAnchorExpression><![CDATA["title"]]></hyperlinkAnchorExpression>
			</textField>
			<textField hyperlinkType="LocalAnchor">
				<reportElement x="5" y="65" width="300" height="15" forecolor="#ff"/>
				<textElement/>
				<textFieldExpression class="java.lang.String"><![CDATA["  >> Click here to go to the summary section."]]></textFieldExpression>
				<hyperlinkAnchorExpression><![CDATA["summary"]]></hyperlinkAnchorExpression>
			</textField>
			<textField hyperlinkType="LocalAnchor">
				<reportElement x="5" y="95" width="300" height="15" forecolor="#ffcc00"/>
				<textElement/>
				<textFieldExpression class="java.lang.String"><![CDATA["  >> Click here to go to the footer of this page."]]></textFieldExpression>
				<hyperlinkAnchorExpression><![CDATA["pageFooter_" + String.valueOf($V{PAGE_NUMBER})]]></hyperlinkAnchorExpression>
			</textField>
		</band>
	</pageHeader>
	<detail>
		<band height="20">
		</band>
	</detail>
	<pageFooter>
		<band height="145">
			<rectangle>
				<reportElement x="0" y="0" width="555" height="145" backcolor="#ffff99"/>
				<graphicElement/>
			</rectangle>
			<textField>
				<reportElement mode="Opaque" x="5" y="5" width="450" height="20" backcolor="#ffff99"/>
				<textElement>
					<font size="14" isBold="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["This is the FOOTER section of the page number " + String.valueOf($V{PAGE_NUMBER}) + "."]]></textFieldExpression>
				<anchorNameExpression><![CDATA["pageFooter_" + String.valueOf($V{PAGE_NUMBER})]]></anchorNameExpression>
			</textField>
			<textField hyperlinkType="LocalAnchor">
				<reportElement x="5" y="35" width="300" height="15" forecolor="#ff0000"/>
				<textElement/>
				<textFieldExpression class="java.lang.String"><![CDATA["  >> Click here to go to the title section."]]></textFieldExpression>
				<hyperlinkAnchorExpression><![CDATA["title"]]></hyperlinkAnchorExpression>
			</textField>
			<textField hyperlinkType="LocalAnchor">
				<reportElement x="5" y="65" width="300" height="15" forecolor="#ff"/>
				<textElement/>
				<textFieldExpression class="java.lang.String"><![CDATA["  >> Click here to go to the summary section."]]></textFieldExpression>
				<hyperlinkAnchorExpression><![CDATA["summary"]]></hyperlinkAnchorExpression>
			</textField>
			<textField hyperlinkType="LocalAnchor">
				<reportElement x="5" y="95" width="300" height="15" forecolor="#8000"/>
				<textElement/>
				<textFieldExpression class="java.lang.String"><![CDATA["  >> Click here to go to the header of this page."]]></textFieldExpression>
				<hyperlinkAnchorExpression><![CDATA["pageHeader_" + String.valueOf($V{PAGE_NUMBER})]]></hyperlinkAnchorExpression>
			</textField>
		</band>
	</pageFooter>
	<summary>
		<band height="145">
			<rectangle>
				<reportElement x="0" y="0" width="555" height="145" backcolor="#99ccff"/>
				<graphicElement/>
			</rectangle>
			<textField>
				<reportElement mode="Opaque" x="5" y="5" width="450" height="20" backcolor="#99ccff"/>
				<textElement>
					<font size="14" isBold="true"/>
				</textElement>
				<textFieldExpression class="java.lang.String"><![CDATA["This is the SUMMARY section"]]></textFieldExpression>
				<anchorNameExpression><![CDATA["summary"]]></anchorNameExpression>
			</textField>
			<textField hyperlinkType="LocalAnchor">
				<reportElement x="5" y="35" width="300" height="15" forecolor="#ff0000"/>
				<textElement/>
				<textFieldExpression class="java.lang.String"><![CDATA["  >> Click here to go to the title section."]]></textFieldExpression>
				<hyperlinkAnchorExpression><![CDATA["title"]]></hyperlinkAnchorExpression>
			</textField>
			<textField hyperlinkType="LocalPage">
				<reportElement x="5" y="65" width="300" height="15" forecolor="#8000"/>
				<textElement/>
				<textFieldExpression class="java.lang.String"><![CDATA["  >> Click here to go to the second page."]]></textFieldExpression>
				<hyperlinkPageExpression><![CDATA[new Integer(2)]]></hyperlinkPageExpression>
			</textField>
			<textField hyperlinkType="Reference">
				<reportElement x="5" y="95" width="300" height="15"/>
				<textElement/>
				<textFieldExpression class="java.lang.String"><![CDATA["  >> Click here to go to www.google.com"]]></textFieldExpression>
				<hyperlinkReferenceExpression><![CDATA["http://www.google.com"]]></hyperlinkReferenceExpression>
			</textField>
		</band>
	</summary>
</jasperReport>

