Jump to content
Changes to the Jaspersoft community edition download ×

First page is empty


arunvishvin

Recommended Posts

Hi,

I am using Jasper Reports 1.2.4 for generating reports, The report contains a main report and a subreport...while exporting to HTML and PDF the first page gets empty and the data starts printing on the second page...we have almost 22reports in our project this is the only report which has this type of output...the design layouts are same for all our reports...

 

I am not getting is this the error or because of our design or a bug(may be)...

 

If anyone founded the solution can you please share it with us.

 

Regards,

Arun

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

this is the jrxml of my report

 

***********************************************************************MainReport*********************************************************************************

<?xml version="1.0" encoding="UTF-8"?>

<!-- Created using JasperAssistant (http://www.jasperassistant.com) -->

<!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">

 

<jasperReport name="XFCDealPartyObligationsReportHelper" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="822" leftMargin="20" rightMargin="0" topMargin="20" bottomMargin="28">

<property name="com.jasperassistant.designer.GridWidth" value="5"/>

<property name="com.jasperassistant.designer.GridHeight" value="5"/>

<property name="com.jasperassistant.designer.Rulers" value="true"/>

<property name="com.jasperassistant.designer.DataSource" value="XFCDealGenericReportHelperDS"/>

<property name="com.jasperassistant.designer.SnapToGrid" value="true"/>

<property name="com.jasperassistant.designer.Margins" value="true"/>

<property name="com.jasperassistant.designer.Units" value="Millimeters"/>

<property name="com.jasperassistant.designer.Grid" value="true"/>

<property name="com.jasperassistant.designer.SnapToGuides" value="true"/>

<reportFont name="XFCDealPartyObligationsReportHelper" isDefault="true" fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

<parameter name="XFCDealPartyObligationsReportDetailDataSource" class="net.sf.jasperreports.engine.data.JRBeanCollectionDataSource" isForPrompting="false"/>

<parameter name="XFCDealPartyObligationsReportDetail" class="net.sf.jasperreports.engine.JasperReport" isForPrompting="false"/>

<field name="fromDate" class="java.sql.Timestamp"/>

<field name="fromDateDisplay" class="java.lang.String"/>

<field name="paymentMode" class="java.lang.String"/>

<field name="reportAgentAddressCity" class="java.lang.String"/>

<field name="reportAgentAddressCityAndPhone" class="java.lang.String"/>

<field name="reportAgentCode" class="java.lang.String"/>

<field name="reportAgentCodeAndName" class="java.lang.String"/>

<field name="reportAgentName" class="java.lang.String"/>

<field name="reportAgentPhone" class="java.lang.String"/>

<field name="reportDate" class="java.sql.Timestamp"/>

<field name="reportDateDisplay" class="java.lang.String"/>

<field name="reportHeader" class="java.lang.String"/>

<field name="toDate" class="java.sql.Timestamp"/>

<field name="toDateDisplay" class="java.lang.String"/>

<pageHeader>

<band height="47" isSplitAllowed="false">

<textField>

<reportElement positionType="Float" x="0" y="0" width="231" height="11"/>

<textElement/>

<textFieldExpression class="java.lang.String"><![CDATA[$F{reportAgentCodeAndName}]]></textFieldExpression>

</textField>

<textField>

<reportElement positionType="Float" x="0" y="16" width="177" height="11"/>

<textElement/>

<textFieldExpression class="java.lang.String"><![CDATA[$F{reportAgentAddressCityAndPhone}]]></textFieldExpression>

</textField>

<staticText>

<reportElement positionType="Float" x="674" y="15" width="27" height="11"/>

<textElement textAlignment="Right"/>

<text><![CDATA[Page:]]></text>

</staticText>

<textField evaluationTime="Page" pattern="0" isBlankWhenNull="true">

<reportElement positionType="Float" x="702" y="15" width="14" height="11"/>

<textElement/>

<textFieldExpression class="java.lang.Integer"><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>

</textField>

<textField>

<reportElement positionType="Float" x="660" y="0" width="84" height="11"/>

<textElement/>

<textFieldExpression class="java.lang.String"><![CDATA[$F{reportDateDisplay}]]></textFieldExpression>

</textField>

<textField>

<reportElement positionType="Float" x="359" y="18" width="57" height="11"/>

<textElement textAlignment="Right">

<font size="8" isBold="true"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{fromDateDisplay}]]></textFieldExpression>

</textField>

<textField>

<reportElement positionType="Float" x="429" y="18" width="57" height="11"/>

<textElement>

<font size="8" isBold="true"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{toDateDisplay}]]></textFieldExpression>

</textField>

<staticText>

<reportElement positionType="Float" x="417" y="18" width="11" height="11"/>

<textElement>

<font size="8" isBold="true"/>

</textElement>

<text><![CDATA[To]]></text>

</staticText>

<staticText>

<reportElement positionType="Float" x="717" y="15" width="11" height="11"/>

<textElement/>

<text><![CDATA[of]]></text>

</staticText>

<textField evaluationTime="Report">

<reportElement positionType="Float" x="729" y="15" width="14" height="11"/>

<textElement/>

<textFieldExpression class="java.lang.Integer"><![CDATA[$V{PAGE_NUMBER}]]></textFieldExpression>

</textField>

<staticText>

<reportElement positionType="Float" x="616" y="0" width="44" height="11"/>

<textElement textAlignment="Right">

<font size="8"/>

</textElement>

<text><![CDATA[ReportDate:]]></text>

</staticText>

<textField>

<reportElement positionType="Float" x="330" y="0" width="187" height="14"/>

<textElement textAlignment="Center">

<font size="12" isBold="true"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{reportHeader}]]></textFieldExpression>

</textField>

<line>

<reportElement positionType="Float" x="2" y="40" width="744" height="1"/>

<graphicElement/>

</line>

</band>

</pageHeader>

<detail>

<band height="20">

<subreport>

<reportElement positionType="Float" x="0" y="0" width="744" height="20"/>

<parametersMapExpression><![CDATA[$P{REPORT_PARAMETERS_MAP}]]></parametersMapExpression>

<dataSourceExpression><![CDATA[(net.sf.jasperreports.engine.data.JRBeanCollectionDataSource)$P{XFCDealPartyObligationsReportDetailDataSource}]]></dataSourceExpression>

<subreportExpression class="net.sf.jasperreports.engine.JasperReport"><![CDATA[$P{XFCDealPartyObligationsReportDetail}]]></subreportExpression>

</subreport>

</band>

</detail>

</jasperReport>

 

 

***********************************************************************SubReport**********************************************************************************

 

<?xml version="1.0" encoding="UTF-8"?>

<!-- Created using JasperAssistant (http://www.jasperassistant.com) -->

<!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">

 

<jasperReport name="XFCDealPartyObligationsReportDetail" language="java" pageWidth="842" pageHeight="595" orientation="Landscape" columnWidth="842" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0">

<property name="com.jasperassistant.designer.GridWidth" value="5"/>

<property name="com.jasperassistant.designer.GridHeight" value="5"/>

<property name="com.jasperassistant.designer.Rulers" value="true"/>

<property name="com.jasperassistant.designer.DataSource" value="XFCDealPartyObligationsRptDS"/>

<property name="com.jasperassistant.designer.SnapToGrid" value="true"/>

<property name="com.jasperassistant.designer.Margins" value="true"/>

<property name="com.jasperassistant.designer.Units" value="Millimeters"/>

<property name="com.jasperassistant.designer.Grid" value="true"/>

<property name="com.jasperassistant.designer.SnapToGuides" value="true"/>

<reportFont name="XFCDealPartyObligationsReportDetail" isDefault="true" fontName="Arial" size="8" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false"/>

<field name="agentCode" class="java.lang.String">

</field>

<field name="agentName" class="java.lang.String">

</field>

<field name="amountInFC" class="java.lang.Double">

</field>

<field name="amountInFCDelivered" class="java.lang.Double">

</field>

<field name="amountInFCDeliveredDisplay" class="java.lang.String">

</field>

<field name="amountInFCDisplay" class="java.lang.String">

</field>

<field name="dealCustomerCode" class="java.lang.String">

</field>

<field name="dealCustomerName" class="java.lang.String">

</field>

<field name="dealDate" class="java.sql.Timestamp">

</field>

<field name="dealDateDisplay" class="java.lang.String">

</field>

<field name="dealDateLocal" class="java.sql.Timestamp">

</field>

<field name="dealDateLocalDisplay" class="java.lang.String">

</field>

<field name="dealGroupNo" class="java.lang.String">

</field>

<field name="dealGroupTxnStatus" class="java.lang.Integer">

</field>

<field name="dealMethod" class="java.lang.String">

</field>

<field name="dealMethodName" class="java.lang.String">

</field>

<field name="dealNo" class="java.lang.String">

</field>

<field name="dealPartyCode" class="java.lang.String">

</field>

<field name="dealReferenceNo" class="java.lang.String">

</field>

<field name="dealReferenceNoParty" class="java.lang.String">

</field>

<field name="dealRemarks" class="java.lang.String">

</field>

<field name="dealType" class="java.lang.String">

</field>

<field name="dealTypeName" class="java.lang.String">

</field>

<field name="dealerCode" class="java.lang.String">

</field>

<field name="fccyCode" class="java.lang.String">

</field>

<field name="fccyName" class="java.lang.String">

</field>

<field name="fccyRounding" class="java.lang.Integer">

</field>

<field name="fccyRoundingDisplay" class="java.lang.String">

</field>

<field name="fccyUnit" class="java.lang.String">

</field>

<field name="partyDealerCode" class="java.lang.String">

</field>

<field name="partyDeliveryDate" class="java.sql.Timestamp">

</field>

<field name="partyDeliveryDateDisplay" class="java.lang.String">

</field>

<field name="partyDeliveryMethod" class="java.lang.String">

</field>

<field name="partyDeliveryMethodName" class="java.lang.String">

</field>

<field name="partyObligationTxnStatus" class="java.lang.Integer">

</field>

<field name="serviceProviderCode" class="java.lang.String">

</field>

<field name="sessionKey" class="java.lang.String">

</field>

<field name="valueDate" class="java.sql.Timestamp">

</field>

<field name="valueDateDisplay" class="java.lang.String">

</field>

<group name="DateGroup" isReprintHeaderOnEachPage="true">

<groupExpression><![CDATA[$F{dealDateDisplay}]]></groupExpression>

<groupHeader>

<band height="17" isSplitAllowed="false">

<staticText>

<reportElement positionType="Float" x="0" y="0" width="29" height="11"/>

<textElement>

<font fontName="Arial" size="8" isBold="true"/>

</textElement>

<text><![CDATA[Date : ]]></text>

</staticText>

<textField>

<reportElement positionType="Float" x="30" y="0" width="193" height="16"/>

<textElement>

<font fontName="Arial" size="8" isBold="true"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{dealDateDisplay}]]></textFieldExpression>

</textField>

</band>

</groupHeader>

</group>

<group name="AgentGroup">

<groupExpression><![CDATA[$F{agentCode}]]></groupExpression>

<groupHeader>

<band height="19">

<textField>

<reportElement positionType="Float" x="30" y="0" width="193" height="16"/>

<textElement>

<font fontName="Arial" size="8" isBold="true"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{agentName}]]></textFieldExpression>

</textField>

<staticText>

<reportElement positionType="Float" x="0" y="0" width="29" height="11"/>

<textElement>

<font fontName="Arial" size="8" isBold="true"/>

</textElement>

<text><![CDATA[Agent : ]]></text>

</staticText>

</band>

</groupHeader>

</group>

<group name="PartyGroup">

<groupExpression><![CDATA[$F{dealCustomerCode}]]></groupExpression>

<groupHeader>

<band height="16">

<textField>

<reportElement positionType="Float" x="30" y="0" width="193" height="16"/>

<textElement>

<font fontName="Arial" size="8" isBold="true"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{dealCustomerCode} + " - " + $F{dealCustomerName}]]></textFieldExpression>

</textField>

<staticText>

<reportElement positionType="Float" x="0" y="0" width="29" height="11"/>

<textElement>

<font fontName="Arial" size="8" isBold="true"/>

</textElement>

<text><![CDATA[Party: ]]></text>

</staticText>

</band>

</groupHeader>

</group>

<group name="FCcyGroup">

<groupExpression><![CDATA[$F{fccyCode}]]></groupExpression>

<groupHeader>

<band height="17">

<staticText>

<reportElement positionType="Float" x="0" y="0" width="29" height="11"/>

<textElement>

<font fontName="Arial" size="8" isBold="true"/>

</textElement>

<text><![CDATA[FC: ]]></text>

</staticText>

<textField>

<reportElement positionType="Float" x="30" y="0" width="193" height="16"/>

<textElement>

<font fontName="Arial" size="8" isBold="true"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{fccyName}]]></textFieldExpression>

</textField>

</band>

</groupHeader>

</group>

<group name="DealGroup">

<groupExpression><![CDATA[$F{dealGroupNo}]]></groupExpression>

</group>

<columnHeader>

<band height="44">

<staticText>

<reportElement positionType="Float" x="0" y="5" width="62" height="11"/>

<textElement>

<font fontName="Arial" size="8" isBold="true"/>

</textElement>

<text><![CDATA[DealGroup]]></text>

</staticText>

<staticText>

<reportElement positionType="Float" x="242" y="5" width="43" height="11"/>

<textElement>

<font fontName="Arial" size="8" isBold="true"/>

</textElement>

<text><![CDATA[DealType]]></text>

</staticText>

<staticText>

<reportElement positionType="Float" x="73" y="5" width="37" height="11"/>

<textElement>

<font size="8" isBold="true"/>

</textElement>

<text><![CDATA[DealNo]]></text>

</staticText>

<staticText>

<reportElement positionType="Float" x="592" y="18" width="46" height="11"/>

<textElement textAlignment="Center">

<font fontName="Arial" size="8" isBold="true"/>

</textElement>

<text><![CDATA[Method]]></text>

</staticText>

<staticText>

<reportElement positionType="Float" x="337" y="5" width="46" height="11"/>

<textElement>

<font fontName="Arial" size="8" isBold="true"/>

</textElement>

<text><![CDATA[ValueDate]]></text>

</staticText>

<staticText>

<reportElement positionType="Float" x="290" y="5" width="47" height="11"/>

<textElement>

<font fontName="Arial" size="8" isBold="true"/>

</textElement>

<text><![CDATA[DealMethod]]></text>

</staticText>

<staticText>

<reportElement positionType="Float" x="559" y="5" width="72" height="11"/>

<textElement textAlignment="Center">

<font fontName="Arial" size="8" isBold="true"/>

</textElement>

<text><![CDATA[Delivery]]></text>

</staticText>

<staticText>

<reportElement positionType="Float" x="546" y="18" width="46" height="11"/>

<textElement textAlignment="Center">

<font fontName="Arial" size="8" isBold="true"/>

</textElement>

<text><![CDATA[Date]]></text>

</staticText>

<staticText>

<reportElement positionType="Float" x="388" y="5" width="73" height="11"/>

<textElement textAlignment="Right">

<font fontName="Arial" size="8" isBold="true"/>

</textElement>

<text><![CDATA[DeliveryAmount]]></text>

</staticText>

<line>

<reportElement positionType="Float" x="2" y="40" width="744" height="1"/>

<graphicElement/>

</line>

<staticText>

<reportElement positionType="Float" x="465" y="5" width="73" height="11"/>

<textElement>

<font fontName="Arial" size="8" isBold="true"/>

</textElement>

<text><![CDATA[Amount Delivered]]></text>

</staticText>

</band>

</columnHeader>

<detail>

<band height="11">

<textField>

<reportElement positionType="Float" x="0" y="0" width="73" height="11"/>

<textElement>

<font fontName="Arial" size="8"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{dealGroupNo}]]></textFieldExpression>

</textField>

<textField>

<reportElement positionType="Float" x="248" y="0" width="43" height="11"/>

<textElement>

<font fontName="Arial" size="8"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{dealTypeName}]]></textFieldExpression>

</textField>

<textField pattern="#,##0.00#">

<reportElement positionType="Float" x="291" y="0" width="46" height="11"/>

<textElement>

<font fontName="Arial" size="8"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{dealMethodName}]]></textFieldExpression>

</textField>

<textField>

<reportElement positionType="Float" x="337" y="0" width="43" height="11"/>

<textElement>

<font fontName="Arial" size="8"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{valueDateDisplay}]]></textFieldExpression>

</textField>

<textField>

<reportElement positionType="Float" x="75" y="0" width="73" height="11"/>

<textElement/>

<textFieldExpression class="java.lang.String"><![CDATA[$F{dealNo}]]></textFieldExpression>

</textField>

<textField>

<reportElement positionType="Float" x="549" y="0" width="43" height="11"/>

<textElement textAlignment="Right">

<font fontName="Arial" size="8"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{partyDeliveryDateDisplay}]]></textFieldExpression>

</textField>

<textField>

<reportElement positionType="Float" x="592" y="0" width="58" height="11"/>

<textElement>

<font fontName="Arial" size="8"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{partyDeliveryMethodName}]]></textFieldExpression>

</textField>

<textField>

<reportElement positionType="Float" x="394" y="0" width="53" height="11"/>

<textElement textAlignment="Right">

<font fontName="Arial" size="8"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{amountInFCDisplay}]]></textFieldExpression>

</textField>

<textField>

<reportElement positionType="Float" x="465" y="0" width="53" height="11"/>

<textElement textAlignment="Right">

<font fontName="Arial" size="8"/>

</textElement>

<textFieldExpression class="java.lang.String"><![CDATA[$F{amountInFCDeliveredDisplay}]]></textFieldExpression>

</textField>

</band>

</detail>

</jasperReport>

Link to comment
Share on other sites

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...