Jump to content
JasperReports Library 7.0 is now available ×

How to call a subreport without parameters


ktrinad

Recommended Posts

By: Christopher lebuso - abcl246

How to call a subreport without parameters

2003-05-12 22:43

I have a report which does not use parameters(this report is like a summary). I have created this report as a subreport and tried calling it from the master report, the pdf is generated but the subreport is not printed.

 

Is there a way i can call a subreport without passing parameters?

 

If there is no way how do i setup parameters to use because i tried using it and could not work. Please help.

 

Chris

 

 

 

 

By: Giulio Toffoli - gt78

RE: How to call a subreport without parameters

2003-05-13 01:34

 

You can call a subreport widthout parameters. But the problem is not this.

Make two steps back...

If a report has no records it is not printed. Really there is a report attribute that can control this behavior: "when no data type" in report properties (tab "more..."). This attribute control what jasper have to do if no data is supplied to the report. Default is that nothing is printed, but what we want is that something is printed (something hat is not records). So we can choose in example AllSectionsNoDetail.

 

If you retrive what you want print using a query, this is another thing.

 

Please post XMls for a more precise answer.

 

Giulio

 

 

 

 

 

By: Christopher lebuso - abcl246

RE: How to call a subreport without parameters

2003-05-13 02:44

Hi,

 

Below is the master report and the subreport follows

The subreport is just a summary and the master will retrieve the details from the database using a java program.

 

 

<?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="Test_report_1"

columnCount="1"

printOrder="Vertical"

orientation="Portrait"

pageWidth="595"

pageHeight="850"

columnWidth="535"

columnSpacing="0"

leftMargin="14"

rightMargin="14"

topMargin="20"

bottomMargin="20"

whenNoDataType="AllSectionsNoDetail"

isTitleNewPage="false"

isSummaryNewPage="true">

<parameter name="FINANCE_PROTECTOR_PLAN" isForPrompting="true" class="java.lang.String">

<parameterDescription><![CDATA[Complete file name .jasper watch the path seperator]]></parameterDescription>

<defaultValueExpression><![CDATA["D:\Report\KLV Dokumentasie vir Turbolink\reports\FINANCE_PROTECTOR_PLAN.jasper"]]></defaultValueExpression>

</parameter>

<parameter name="Image" isForPrompting="true" class="java.lang.String"/>

<parameter name="ReportTitle" isForPrompting="true" class="java.lang.String"/>

<background>

<band height="0">

</band>

</background>

<title>

<band height="87">

<staticText>

<reportElement

mode="Opaque"

x="182"

y="27"

width="195"

height="16"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Center" verticalAlignment="Top" lineSpacing="Single">

<font fontName="" pdfFontName="Helvetica-Bold" size="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

<text>CREDIT SETTLEMENT BENEFIT</text>

</staticText>

<image scaleImage="FillFrame" vAlign="Top" hAlign="Left" isUsingCache="false" evaluationTime="Now" hyperlinkType="None"> <reportElement

mode="Opaque"

x="0"

y="-6"

width="168"

height="48"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<graphicElement stretchType="NoStretch" pen="None" fill="Solid" />

<imageExpression class="java.lang.String"><![CDATA["F:\Bankfin\Images\bankfin.jpg"]]></imageExpression> </image>

<image scaleImage="FillFrame" vAlign="Top" hAlign="Left" isUsingCache="false" evaluationTime="Now" hyperlinkType="None"> <reportElement

mode="Opaque"

x="470"

y="7"

width="91"

height="60"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<graphicElement stretchType="NoStretch" pen="None" fill="Solid" />

<imageExpression class="java.lang.String"><![CDATA["F:\Bankfin\images\Bankfin.JPG"]]></imageExpression> </image>

<staticText>

<reportElement

mode="Opaque"

x="203"

y="42"

width="156"

height="26"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Center" verticalAlignment="Top" lineSpacing="Single">

<font fontName="" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

<text><![CDATA[Proposal and Policy Schedule

Maximum entry age 60]]></text>

</staticText>

<staticText>

<reportElement

mode="Opaque"

x="218"

y="69"

width="125"

height="17"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="true"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Center" verticalAlignment="Top" lineSpacing="Single">

<font fontName="" pdfFontName="Helvetica-Bold" size="10" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

<text>Duty Paid</text>

</staticText>

</band>

</title>

<pageHeader>

<band height="35">

<staticText>

<reportElement

mode="Opaque"

x="0"

y="6"

width="566"

height="29"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Justified" verticalAlignment="Top" lineSpacing="Single">

<font fontName="" pdfFontName="Helvetica" size="9" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

<text><![CDATA[Finance Protector Plan - Death, temporary total disability, lump sum total and permanent disability, personal catastrophe (15 illnesses) and retrenchment benefits (6 monthly instalments)]]></text>

</staticText>

</band>

</pageHeader>

<columnHeader>

<band height="0">

</band>

</columnHeader>

<detail>

<band height="681">

<rectangle>

<reportElement

mode="Transparent"

x="2"

y="80"

width="566"

height="70"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<graphicElement stretchType="NoStretch" pen="1Point" fill="Solid" />

</rectangle>

<staticText>

<reportElement

mode="Opaque"

x="2"

y="80"

width="566"

height="15"

forecolor="#FFFFFF"

backcolor="#400040"

positionType="Float"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single">

<font fontName="" pdfFontName="Helvetica-Bold" size="10" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

<text><![CDATA[1st Life Insured]]></text>

</staticText>

<staticText>

<reportElement

mode="Opaque"

x="2"

y="160"

width="566"

height="15"

forecolor="#FFFFFF"

backcolor="#400040"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Center" verticalAlignment="Top" lineSpacing="Single">

<font fontName="" pdfFontName="Helvetica-Bold" size="10" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

<text><![CDATA[2nd Life Insured]]></text>

</staticText>

<rectangle>

<reportElement

mode="Transparent"

x="2"

y="160"

width="566"

height="70"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<graphicElement stretchType="NoStretch" pen="1Point" fill="Solid" />

</rectangle>

<rectangle>

<reportElement

mode="Transparent"

x="2"

y="0"

width="566"

height="70"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<graphicElement stretchType="NoStretch" pen="1Point" fill="Solid" />

</rectangle>

<staticText>

<reportElement

mode="Opaque"

x="1"

y="0"

width="566"

height="15"

forecolor="#FFFFFF"

backcolor="#400040"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single">

<font fontName="" pdfFontName="Helvetica-Bold" size="10" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

<text>Dealer Information</text>

 

 

 

 

 

By: Christopher lebuso - abcl246

RE: How to call a subreport without parameters

2003-05-13 02:44

Hi,

 

Below is the master report and the subreport follows.

 

The subreport is just a summary and the master will retrieve the details from the database using a java program.

 

 

<?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="Test_report_1"

columnCount="1"

printOrder="Vertical"

orientation="Portrait"

pageWidth="595"

pageHeight="850"

columnWidth="535"

columnSpacing="0"

leftMargin="14"

rightMargin="14"

topMargin="20"

bottomMargin="20"

whenNoDataType="AllSectionsNoDetail"

isTitleNewPage="false"

isSummaryNewPage="true">

<parameter name="FINANCE_PROTECTOR_PLAN" isForPrompting="true" class="java.lang.String">

<parameterDescription><![CDATA[Complete file name .jasper watch the path seperator]]></parameterDescription>

<defaultValueExpression><![CDATA["D:\Report\KLV Dokumentasie vir Turbolink\reports\FINANCE_PROTECTOR_PLAN.jasper"]]></defaultValueExpression>

</parameter>

<parameter name="Image" isForPrompting="true" class="java.lang.String"/>

<parameter name="ReportTitle" isForPrompting="true" class="java.lang.String"/>

<background>

<band height="0">

</band>

</background>

<title>

<band height="87">

<staticText>

<reportElement

mode="Opaque"

x="182"

y="27"

width="195"

height="16"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Center" verticalAlignment="Top" lineSpacing="Single">

<font fontName="" pdfFontName="Helvetica-Bold" size="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

<text>CREDIT SETTLEMENT BENEFIT</text>

</staticText>

<image scaleImage="FillFrame" vAlign="Top" hAlign="Left" isUsingCache="false" evaluationTime="Now" hyperlinkType="None"> <reportElement

mode="Opaque"

x="0"

y="-6"

width="168"

height="48"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<graphicElement stretchType="NoStretch" pen="None" fill="Solid" />

<imageExpression class="java.lang.String"><![CDATA["F:\Bankfin\Images\bankfin.jpg"]]></imageExpression> </image>

<image scaleImage="FillFrame" vAlign="Top" hAlign="Left" isUsingCache="false" evaluationTime="Now" hyperlinkType="None"> <reportElement

mode="Opaque"

x="470"

y="7"

width="91"

height="60"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<graphicElement stretchType="NoStretch" pen="None" fill="Solid" />

<imageExpression class="java.lang.String"><![CDATA["F:\Bankfin\images\Bankfin.JPG"]]></imageExpression> </image>

<staticText>

<reportElement

mode="Opaque"

x="203"

y="42"

width="156"

height="26"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Center" verticalAlignment="Top" lineSpacing="Single">

<font fontName="" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

<text><![CDATA[Proposal and Policy Schedule

Maximum entry age 60]]></text>

</staticText>

<staticText>

<reportElement

mode="Opaque"

x="218"

y="69"

width="125"

height="17"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="true"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Center" verticalAlignment="Top" lineSpacing="Single">

<font fontName="" pdfFontName="Helvetica-Bold" size="10" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

<text>Duty Paid</text>

</staticText>

</band>

</title>

<pageHeader>

<band height="35">

<staticText>

<reportElement

mode="Opaque"

x="0"

y="6"

width="566"

height="29"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Justified" verticalAlignment="Top" lineSpacing="Single">

<font fontName="" pdfFontName="Helvetica" size="9" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

<text><![CDATA[Finance Protector Plan - Death, temporary total disability, lump sum total and permanent disability, personal catastrophe (15 illnesses) and retrenchment benefits (6 monthly instalments)]]></text>

</staticText>

</band>

</pageHeader>

<columnHeader>

<band height="0">

</band>

</columnHeader>

<detail>

<band height="681">

<rectangle>

<reportElement

mode="Transparent"

x="2"

y="80"

width="566"

height="70"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<graphicElement stretchType="NoStretch" pen="1Point" fill="Solid" />

</rectangle>

<staticText>

<reportElement

mode="Opaque"

x="2"

y="80"

width="566"

height="15"

forecolor="#FFFFFF"

backcolor="#400040"

positionType="Float"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single">

<font fontName="" pdfFontName="Helvetica-Bold" size="10" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

<text><![CDATA[1st Life Insured]]></text>

</staticText>

<staticText>

<reportElement

mode="Opaque"

x="2"

y="160"

width="566"

height="15"

forecolor="#FFFFFF"

backcolor="#400040"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Center" verticalAlignment="Top" lineSpacing="Single">

<font fontName="" pdfFontName="Helvetica-Bold" size="10" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

<text><![CDATA[2nd Life Insured]]></text>

</staticText>

<rectangle>

<reportElement

mode="Transparent"

x="2"

y="160"

width="566"

height="70"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<graphicElement stretchType="NoStretch" pen="1Point" fill="Solid" />

</rectangle>

<rectangle>

<reportElement

mode="Transparent"

x="2"

y="0"

width="566"

height="70"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<graphicElement stretchType="NoStretch" pen="1Point" fill="Solid" />

</rectangle>

<staticText>

<reportElement

mode="Opaque"

x="1"

y="0"

width="566"

height="15"

forecolor="#FFFFFF"

backcolor="#400040"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single">

<font fontName="" pdfFontName="Helvetica-Bold" size="10" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

<text>Dealer Information</text>

</staticText>

<staticText>

<reportElement

mode="Opaque"

x="2"

y="240"

width="566"

height="15"

forecolor="#FFFFFF"

backcolor="#400040"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single">

<font fontName="" pdfFontName="Helvetica-Bold" size="11" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

<text>Cover Required</text>

</staticText>

<rectangle>

<reportElement

mode="Transparent"

x="2"

y="240"

width="566"

height="70"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<graphicElement stretchType="NoStretch" pen="1Point" fill="Solid" />

</rectangle>

<staticText>

<reportElement

mode="Opaque"

x="0"

y="320"

width="567"

height="15"

forecolor="#FFFFFF"

backcolor="#400040"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single">

<font fontName="" pdfFontName="Helvetica-Bold" size="10" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

<text>DECLARATION BY LIFE INSURED</text>

</staticText>

<staticText>

<reportElement

mode="Opaque"

x="0"

y="335"

width="567"

height="20"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Center" verticalAlignment="Middle" lineSpacing="Single">

<font fontName="" pdfFontName="Helvetica-Bold" size="12" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

<text><![CDATA[i/We, the life/lives insured, understand, agree and, where applicable, declare that:]]></text>

</staticText>

<staticText>

<reportElement

mode="Opaque"

x="3"

y="355"

width="563"

height="166"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single">

<font fontName="" pdfFontName="Helvetica" size="8" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

<text><![CDATA[1. To the best of my/our knowledge I am/ we are in good health and apart from minor ailments, I/we have not received any treatment during the past three months or been hospitalised or undergone hospital treatment or specialist investigation during the past 12 months and have never suffered from any form of disability or heart attack or heart disease, stroke, cancer, kidney disease, impaired vision or AIDS related condition.

2. This proposal, the policy summary of the Credit Settlement Policy and any endorsements or annexes may change from time to time.

3. Any doctor, other person or institution is authorised before and after my/our death to disclose any information concerning my/our health, including the results of any blood tests or other, to the insurer.

4. I have been given written notice regarding my freedom of choice

- to enter into a new policy or make available an existing policy as full or partial security for the credit granted by the institution

- in terms of a new policy, as to the insurer and intermediary

- as to the value of policy benefits under the new policy, and I have not been subjected to any coercion or inducement in applying for this policy.

5. This policy is used as collateral security for the credit/loan agreement or facility with the institution and I/we hereby cede, transfer and assign to the institution all my/our rights, titles and interest in this policy.

6. If the above particulars and declaration is not correct, then the insurer shall have the right to cancel the policy.I/We hereby acknowledge that the intermediary has disclosed the statutory notice and confirmed the appropriate information contained in this document regarding the credit life insurance policy, which I/we have read and understood.I/We the undersigned hereby declare that I/we have read and completed, whether in my/our handwriting or not, the above-mentioned declaration and acknowledge and understand the contents thereof. I/We furthermore confirm that I/we have signed the declaration of my/our own free will and I/we regard it as binding.]]></text>

</staticText>

<line direction="TopDown">

<reportElement

mode="Opaque"

x="0"

y="521"

width="567"

height="0"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<graphicElement stretchType="NoStretch" pen="1Point" fill="Solid" />

</line>

<line direction="TopDown">

<reportElement

mode="Opaque"

x="0"

y="575"

width="567"

height="0"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<graphicElement stretchType="NoStretch" pen="1Point" fill="Solid" />

</line>

<line direction="TopDown">

<reportElement

mode="Opaque"

x="0"

y="555"

width="567"

height="0"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<graphicElement stretchType="NoStretch" pen="1Point" fill="Solid" />

</line>

<line direction="TopDown">

<reportElement

mode="Opaque"

x="0"

y="565"

width="567"

height="0"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<graphicElement stretchType="NoStretch" pen="1Point" fill="Solid" />

</line>

<staticText>

<reportElement

mode="Opaque"

x="4"

y="523"

width="562"

height="25"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Justified" verticalAlignment="Top" lineSpacing="Single">

<font fontName="" pdfFontName="Helvetica" size="9" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

<text><![CDATA[iF THE ABOVE MEDICAL DECLARATION CANNOT BE MADE WITHOUT QUALIFICATION PLEASE SUPPLY DETAILS:

NAME AND ADDRESS OF DOCTOR, NATURE ILLNESS/TREATMENT]]></text>

</staticText>

<staticText>

<reportElement

mode="Opaque"

x="8"

y="585"

width="50"

height="10"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Left" verticalAlignment="Bottom" lineSpacing="Single">

<font fontName="" pdfFontName="Helvetica-Bold" size="10" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

<text>Signed at</text>

</staticText>

<staticText>

<reportElement

mode="Opaque"

x="263"

y="585"

width="41"

height="10"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Left" verticalAlignment="Bottom" lineSpacing="Single">

<font fontName="" pdfFontName="Helvetica-Bold" size="10" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

<text>On the</text>

</staticText>

<staticText>

<reportElement

mode="Opaque"

x="390"

y="585"

width="40"

height="10"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Left" verticalAlignment="Bottom" lineSpacing="Single">

<font fontName="" pdfFontName="Helvetica-Bold" size="10" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

<text>day of</text>

</staticText>

<staticText>

<reportElement

mode="Opaque"

x="520"

y="585"

width="30"

height="10"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Left" verticalAlignment="Bottom" lineSpacing="Single">

<font fontName="" pdfFontName="Helvetica-Bold" size="10" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

<text>Year</text>

</staticText>

<line direction="TopDown">

<reportElement

mode="Opaque"

x="65"

y="595"

width="189"

height="0"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<graphicElement stretchType="NoStretch" pen="1Point" fill="Solid" />

</line>

<line direction="BottomUp">

<reportElement

mode="Opaque"

x="304"

y="595"

width="80"

height="0"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<graphicElement stretchType="NoStretch" pen="1Point" fill="Solid" />

</line>

<line direction="TopDown">

<reportElement

mode="Opaque"

x="440"

y="595"

width="74"

height="0"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<graphicElement stretchType="NoStretch" pen="1Point" fill="Solid" />

</line>

<staticText>

<reportElement

mode="Opaque"

x="10"

y="648"

width="155"

height="10"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Left" verticalAlignment="Bottom" lineSpacing="Single">

<font fontName="" pdfFontName="Helvetica-Bold" size="10" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

<text><![CDATA[signature of 1st Life insured]]></text>

</staticText>

<staticText>

<reportElement

mode="Opaque"

x="198"

y="648"

width="155"

height="10"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Left" verticalAlignment="Bottom" lineSpacing="Single">

<font fontName="" pdfFontName="Helvetica-Bold" size="10" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

<text><![CDATA[signature of 2nd Life insured]]></text>

</staticText>

<staticText>

<reportElement

mode="Opaque"

x="406"

y="648"

width="155"

height="10"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Left" verticalAlignment="Bottom" lineSpacing="Single">

<font fontName="" pdfFontName="Helvetica-Bold" size="10" isBold="true" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

<text>Name of representative</text>

</staticText>

<line direction="TopDown">

<reportElement

mode="Opaque"

x="5"

y="643"

width="175"

height="0"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<graphicElement stretchType="NoStretch" pen="1Point" fill="Solid" />

</line>

<line direction="TopDown">

<reportElement

mode="Opaque"

x="196"

y="643"

width="175"

height="0"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<graphicElement stretchType="NoStretch" pen="1Point" fill="Solid" />

</line>

<line direction="TopDown">

<reportElement

mode="Opaque"

x="390"

y="643"

width="175"

height="0"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<graphicElement stretchType="NoStretch" pen="1Point" fill="Solid" />

</line>

<rectangle>

<reportElement

mode="Transparent"

x="0"

y="335"

width="567"

height="329"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<graphicElement stretchType="NoStretch" pen="1Point" fill="Solid" />

</rectangle>

</band>

</detail>

<columnFooter>

<band height="0">

</band>

</columnFooter>

<pageFooter>

<band height="0">

<staticText>

<reportElement

mode="Opaque"

x="7"

y="-14"

width="71"

height="10"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Justified" verticalAlignment="Bottom" lineSpacing="Single">

<font fontName="" pdfFontName="Helvetica" size="8" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

<text><![CDATA[1st Copy – Insurer ]]></text>

</staticText>

<staticText>

<reportElement

mode="Opaque"

x="120"

y="-16"

width="85"

height="10"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Justified" verticalAlignment="Top" lineSpacing="Single">

<font fontName="" pdfFontName="Helvetica" size="8" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

<text><![CDATA[2nd Copy – Institution ]]></text>

</staticText>

<staticText>

<reportElement

mode="Opaque"

x="244"

y="-14"

width="206"

height="10"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Justified" verticalAlignment="Top" lineSpacing="Single">

<font fontName="" pdfFontName="Helvetica" size="8" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

<text><![CDATA[3rd Copy with summary of the terms and conditions – Client ]]></text>

</staticText>

<staticText>

<reportElement

mode="Opaque"

x="511"

y="-13"

width="52"

height="10"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Justified" verticalAlignment="Top" lineSpacing="Single">

<font fontName="" pdfFontName="Helvetica" size="8" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

<text><![CDATA[Pages 1 of 2]]></text>

</staticText>

</band>

</pageFooter>

<summary>

<band height="57">

<subreport isUsingCache="true">

<reportElement

mode="Transparent"

x="9"

y="9"

width="549"

height="41"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<subreportExpression class="java.lang.String">$P{FINANCE_PROTECTOR_PLAN}</subreportExpression>

</subreport>

</band>

</summary>

</jasperReport>

 

__________________________________________

 

The subreport:

 

<?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="FINANCE_PROTECTOR_PLAN"

columnCount="1"

printOrder="Vertical"

orientation="Portrait"

pageWidth="595"

pageHeight="2800"

columnWidth="535"

columnSpacing="0"

leftMargin="30"

rightMargin="30"

topMargin="40"

bottomMargin="40"

whenNoDataType="AllSectionsNoDetail"

isTitleNewPage="false"

isSummaryNewPage="false">

<parameter name="ReportTitle" isForPrompting="true" class="java.lang.String"/>

<background>

<band height="0">

</band>

</background>

<title>

<band height="0">

</band>

</title>

<pageHeader>

<band height="0">

</band>

</pageHeader>

<columnHeader>

<band height="0">

</band>

</columnHeader>

<detail>

<band height="2318">

<staticText>

<reportElement

mode="Transparent"

x="33"

y="15"

width="163"

height="11"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Center" verticalAlignment="Top" lineSpacing="Single">

<font fontName="" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

<text>FINANCE PROTECTOR PLAN</text>

</staticText>

<staticText>

<reportElement

mode="Transparent"

x="7"

y="107"

width="278"

height="2137"

forecolor="#000000"

backcolor="#FFFFFF"

positionType="FixRelativeToTop"

isPrintRepeatedValues="true"

isRemoveLineWhenBlank="false"

isPrintInFirstWholeBand="false"

isPrintWhenDetailOverflows="false"/>

<textElement textAlignment="Left" verticalAlignment="Top" lineSpacing="Single">

<font fontName="" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1250" isStrikeThrough="false" />

</textElement>

<text><![CDATA[bENEFITS

 

Death benefit

In the event of the death of the Life Insured during the term of insurance, the benefit payable shall be an amount equivalent to but not exceeding the Outstanding Debt assuming all Instalments in terms of the credit agreement have been paid.

 

Lump sum total and permanent disability benefit

In the event of the total and permanent disability of the Life Insured occurring prior to the attainment of age 65 (sixty five) years and before the expiry of the term of this policy an amount equivalent to the death benefit shall be payable by the Insurer.

 

For the purposes hereof total and permanent disability shall mean such medically certified incapacity which prevents the Life Insured from following his own occupation or any other occupation for which he is or could reasonably be expected to become qualified by virtue of his knowledge, training, education, ability or experience. The Life Insured shall be deemed to have suffered total and permanent disablement upon the total and permanent loss of use of both hands, both feet or both eyes.

 

Temporary total disability benefit

If, before the policy anniversary preceding the Life InsuredÂ’s 65th (sixty fifth) birthday and the expiry of the term of the policy the Life Insured is prevented, as a result of illness or bodily injury, from earning his normal income from his own or any similar occupation, the Insurer shall pay, after a deferred period of 30 (thirty) days, the Instalment or a proportion thereof if the Life Insured suffers only a partial loss of income, until the recovery of the Life Insured. If, in the opinion of the Insurer, the Life Insured becomes totally and permanently disabled, then the lump sum total and permanent disability benefit may become payable.

 

Personal catastrophe benefit

In the event of the Life Insured suffering any of the following prior to his 60th (sixtieth) birthday then an amount equal to the death benefit shall be payable by the Insurer:

 

Heart attack, stroke, cancer (excluding all skin cancer and cancer-in-situ), renal failure, paraplegia, blindness, surgery for coronary heart disease, surgery for a disease of the aorta, replacement of a heart valve, an organ transplant, coma, major burns, loss of limb, loss of speech, HIV through blood transfusion.

 

Retrenchment benefit

Payable in the event of the Life Insured suffering loss of employment before the age of 60 (sixty) years, as a result of the implementation of a staff reduction program by his employer. The benefit shall be the Instalment payable monthly for the duration of unemployment subject to a maximum of 3 (three) months per claim event to the Creditor only, limited to 6 (six) monthly Instalments and payable after a deferred period of 30 (thirty) days.

 

No benefit is payable if loss of employment occurs within 3 (three) months of the date of the policy, or if subsequent loss of employment occurs less than 3 (three) months after payment of a previous Instalment indemnity claim has ceased, or after the full Retrenchment benefit of 6 (six) monthly payments has been paid.

 

Conversion Option

Upon written application by the Life Insured being received by the Insurer within 30 (thirty) days of the expiry of this policy or the surrender of this policy after it has been in force for a period not less than 2 (two) years, and before the Life Insured has attained the age of 60 (sixty) years, the Life Insured shall be entitled to effect an individual whole life policy without any additional benefits such as disability or personal catastrophe benefits fo

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...