Jump to content
We've recently updated our Privacy Statement, available here ×

srinivas25

Members
  • Posts

    1
  • Joined

  • Last visited

srinivas25's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. I have a master report orientation=Landscape and have 10 subreports in it. first three are laid out horizantally and from 4th onwards vertical layout. Problem is when the 4th one grows, it hides the 5th one and the whole reports gets messed up. all subreports are marked with positionType=float. I am attaching the JRML of main one..please help me as this is high priority production issue. <?xml version="1.0" encoding="UTF-8"?> <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="IOReport" pageWidth="842" pageHeight="650" orientation="Landscape" columnWidth="515" leftMargin="40" rightMargin="30" topMargin="30" bottomMargin="30" isSummaryNewPage="false" isFloatColumnFooter="false"> <property name="ireport.scriptlethandling" value="0"/> <property name="ireport.encoding" value="UTF-8"/> <style name="Sans_Normal" isDefault="true" fontName="Arial" fontSize="9" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> <style name="Sans_Bold" isDefault="false" fontName="Arial" fontSize="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false"/> <parameter name="CompanyInfo" class="java.lang.String"></parameter> <parameter name="ReportHeader" class="java.lang.String"></parameter> <parameter name="Signature" class="java.lang.String"></parameter> <field name="contInfo" class="java.util.ArrayList"> <fieldDescription><![CDATA[contInfo]]></fieldDescription> </field> <field name="summary" class="java.util.ArrayList"> <fieldDescription><![CDATA[summary]]></fieldDescription> </field> <field name="advInfo" class="java.util.ArrayList"> <fieldDescription><![CDATA[advInfo]]></fieldDescription> </field> <field name="billingInfo" class="java.util.ArrayList"> <fieldDescription><![CDATA[billingInfo]]></fieldDescription> </field> <field name="agencyInfo" class="java.util.ArrayList"> <fieldDescription><![CDATA[agencyInfo]]></fieldDescription> </field> <field name="generalComments" class="java.util.ArrayList"> <fieldDescription><![CDATA[generalComments]]></fieldDescription> </field> <field name="reportingInfo" class="java.util.ArrayList"> <fieldDescription><![CDATA[reportingInfo]]></fieldDescription> </field> <field name="creativeSpecs" class="java.util.ArrayList"> <fieldDescription><![CDATA[creativeSpecs]]></fieldDescription> </field> <field name="lines" class="java.util.ArrayList"> <fieldDescription><![CDATA[lines]]></fieldDescription> </field> <field name="termsAndCondns" class="java.util.ArrayList"> <fieldDescription><![CDATA[termsAndCondns]]></fieldDescription> </field> <field name="authSig" class="java.util.ArrayList"> <fieldDescription><![CDATA[authSig]]></fieldDescription> </field> <field name="totalQuantity" class="java.lang.Long"> <fieldDescription><![CDATA[totalQuantity]]></fieldDescription> </field> <field name="totalValue" class="java.lang.Double"> <fieldDescription><![CDATA[totalValue]]></fieldDescription> </field> <background> <band height="550" splitType="Stretch"> <image evaluationTime="Report"> <reportElement x="0" y="0" width="842" height="530"/> <imageExpression class="java.lang.String"> <![CDATA[$P{IS_LOCKED}.booleanValue() ? ($P{IMAGE_PATH} +"/draft-wm2.jpg") : ($P{IMAGE_PATH} +"/blank_image.jpg")]]> </imageExpression> </image> </band> </background> <title> </title> <pageHeader> <band height="70"> <image scaleImage="RetainShape" isUsingCache="true"> <reportElement x="0" y="5" width="165" height="30"/> <graphicElement/> <imageExpression class="java.awt.Image">$P{AOLImage}</imageExpression> </image> <textField isBlankWhenNull="true" bookmarkLevel="1"> <reportElement x="270" y="10" width="460" height="60" style="Sans_Normal"/> <textElement textAlignment="Right"> <font size="8"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{CompanyInfo}]]></textFieldExpression> </textField> <textField isBlankWhenNull="true" bookmarkLevel="1"> <reportElement x="80" y="40" width="515" height="25" style="Sans_Normal"/> <textElement textAlignment="Center"> <font size="14"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{ReportHeader}]]></textFieldExpression> </textField> </band> </pageHeader> <detail> <band height="250" splitType="Stretch"> <subreport isUsingCache="true"> <reportElement positionType="Float" isPrintRepeatedValues="false" x="0" y="10" width="295" height="20"/> <dataSourceExpression><![CDATA[new JRBeanCollectionDataSource($F{contInfo})]]></dataSourceExpression> <subreportExpression class="java.lang.String"> <![CDATA[$P{SUBREPORT_PATH} + "/ContractInfo.jasper"]]></subreportExpression> </subreport> <subreport isUsingCache="true"> <reportElement positionType="Float" x="250" y="10" width="175" height="20" isRemoveLineWhenBlank="true" backcolor="#99ccff"/> <subreportParameter name="sectionName"> <subreportParameterExpression><![CDATA[$P{sectionName}]]></subreportParameterExpression> </subreportParameter> <dataSourceExpression><![CDATA[new JRBeanCollectionDataSource($F{advInfo})]]></dataSourceExpression> <subreportExpression class="java.lang.String"> <![CDATA[$P{SUBREPORT_PATH} + "/AdvertiserInfo.jasper"]]></subreportExpression> </subreport> <subreport isUsingCache="true"> <reportElement positionType="Float" x="480" y="10" width="255" height="20" isRemoveLineWhenBlank="true" backcolor="#99ccff"/> <dataSourceExpression><![CDATA[new JRBeanCollectionDataSource($F{summary})]]></dataSourceExpression> <subreportExpression class="java.lang.String"> <![CDATA[$P{SUBREPORT_PATH} + "/SummaryInfo.jasper"]]></subreportExpression> </subreport> <subreport isUsingCache="true"> <reportElement positionType="Float" x="0" y="90" width="250" height="20" backcolor="#99ccff"/> <dataSourceExpression> <![CDATA[new JRBeanCollectionDataSource($F{generalComments})]]></dataSourceExpression> <subreportExpression class="java.lang.String"> <![CDATA[$P{SUBREPORT_PATH} + "/GeneralComments.jasper"]]></subreportExpression> </subreport> <subreport isUsingCache="true"> <reportElement positionType="Float" x="0" y="115" width="175" height="20" backcolor="#99ccff"/> <dataSourceExpression> <![CDATA[new JRBeanCollectionDataSource($F{creativeSpecs})]]></dataSourceExpression> <subreportExpression class="java.lang.String"> <![CDATA[$P{SUBREPORT_PATH} + "/CreativeSpecs.jasper"]]></subreportExpression> </subreport> <subreport isUsingCache="true"> <reportElement positionType="Float" x="0" y="100" width="550" height="20" backcolor="#99ccff"/> <subreportParameter name="totalQuantity"> <subreportParameterExpression><![CDATA[$F{totalQuantity}]]></subreportParameterExpression> </subreportParameter> <subreportParameter name="totalValue"> <subreportParameterExpression><![CDATA[$F{totalValue}]]></subreportParameterExpression> </subreportParameter> <dataSourceExpression> <![CDATA[new JRBeanCollectionDataSource($F{lines})]]></dataSourceExpression> <subreportExpression class="java.lang.String"> <![CDATA[$P{SUBREPORT_PATH} + "/Lines.jasper"]]></subreportExpression> </subreport> <subreport isUsingCache="true"> <reportElement positionType="Float" x="0" y="130" width="175" height="20" isRemoveLineWhenBlank="true" backcolor="#99ccff"/> <dataSourceExpression> <![CDATA[new JRBeanCollectionDataSource($F{termsAndCondns})]]></dataSourceExpression> <subreportExpression class="java.lang.String"> <![CDATA[$P{SUBREPORT_PATH} + "/TermsAndConditions.jasper"]]></subreportExpression> </subreport> <subreport isUsingCache="true"> <reportElement positionType="Float" x="0" y="165" width="175" height="20" isRemoveLineWhenBlank="true" backcolor="#99ccff"/> <dataSourceExpression> <![CDATA[new JRBeanCollectionDataSource($F{authSig})]]></dataSourceExpression> <subreportExpression class="java.lang.String"> <![CDATA[$P{SUBREPORT_PATH} + "/AuthSignature.jasper"]]></subreportExpression> </subreport> <subreport isUsingCache="true"> <reportElement positionType="Float" x="0" y="190" width="175" height="20" isRemoveLineWhenBlank="true" backcolor="#99ccff"/> <subreportParameter name="signature"> <subreportParameterExpression><![CDATA[$P{Signature}]]></subreportParameterExpression> </subreportParameter> <dataSourceExpression> <![CDATA[new JRBeanCollectionDataSource($F{authSig})]]></dataSourceExpression> <subreportExpression class="java.lang.String"> <![CDATA[$P{SUBREPORT_PATH} + "/AolSignature.jasper"]]></subreportExpression> </subreport> <subreport isUsingCache="true"> <reportElement positionType="Float" x="0" y="190" width="175" height="20" isRemoveLineWhenBlank="true" backcolor="#99ccff"/> <dataSourceExpression> <![CDATA[new JRBeanCollectionDataSource($F{authSig})]]></dataSourceExpression> <subreportExpression class="java.lang.String"> <![CDATA[$P{SUBREPORT_PATH} + "/CustomerSignature.jasper"]]></subreportExpression> </subreport> </band> </detail> <pageFooter> <band height="40"> <textField> <reportElement x="280" y="20" width="105" height="15"/> <textElement textAlignment="Right"/> <textFieldExpression class="java.lang.String"> <![CDATA[$P{PLAN_ID}+"("+ $P{VERSION} + ")"+ " Page " + String.valueOf($V{PAGE_NUMBER}) + " /"]]></textFieldExpression> </textField> <textField evaluationTime="Report"> <reportElement x="385" y="20" width="75" height="15"/> <textElement/> <textFieldExpression class="java.lang.String"> <![CDATA[" " + String.valueOf($V{PAGE_NUMBER})]]></textFieldExpression> </textField> </band> </pageFooter> <summary> <band height="0"> <printWhenExpression>Boolean.FALSE</printWhenExpression> </band> </summary> </jasperReport> Code:<?xml version="1.0" encoding="UTF-8"?><jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="IOReport" pageWidth="842" pageHeight="650" orientation="Landscape" columnWidth="515" leftMargin="40" rightMargin="30" topMargin="30" bottomMargin="30" isSummaryNewPage="false" isFloatColumnFooter="false"> <property name="ireport.scriptlethandling" value="0"/> <property name="ireport.encoding" value="UTF-8"/> <import value="java.util.*"/> <style name="Sans_Normal" isDefault="true" fontName="Arial" fontSize="9" isBold="false" isItalic="false" isUnderline="false" isStrikeThrough="false"/> <style name="Sans_Bold" isDefault="false" fontName="Arial" fontSize="8" isBold="true" isItalic="false" isUnderline="false" isStrikeThrough="false"/> <parameter name="CompanyInfo" class="java.lang.String"></parameter> <parameter name="ReportHeader" class="java.lang.String"></parameter> <parameter name="Signature" class="java.lang.String"></parameter> <parameter name="sectionName" class="java.lang.String"></parameter> <parameter name="SUBREPORT_PATH" class="java.lang.String"></parameter> <parameter name="IMAGE_PATH" class="java.lang.String"></parameter> <parameter name="PLAN_ID" class="java.lang.String"></parameter> <parameter name="VERSION" class="java.lang.String"></parameter> <parameter name="IS_LOCKED" class="java.lang.Boolean"></parameter> <field name="contInfo" class="java.util.ArrayList"> <fieldDescription><![CDATA[contInfo]]></fieldDescription> </field> <field name="summary" class="java.util.ArrayList"> <fieldDescription><![CDATA[summary]]></fieldDescription> </field> <field name="advInfo" class="java.util.ArrayList"> <fieldDescription><![CDATA[advInfo]]></fieldDescription> </field> <field name="billingInfo" class="java.util.ArrayList"> <fieldDescription><![CDATA[billingInfo]]></fieldDescription> </field> <field name="agencyInfo" class="java.util.ArrayList"> <fieldDescription><![CDATA[agencyInfo]]></fieldDescription> </field> <field name="generalComments" class="java.util.ArrayList"> <fieldDescription><![CDATA[generalComments]]></fieldDescription> </field> <field name="reportingInfo" class="java.util.ArrayList"> <fieldDescription><![CDATA[reportingInfo]]></fieldDescription> </field> <field name="creativeSpecs" class="java.util.ArrayList"> <fieldDescription><![CDATA[creativeSpecs]]></fieldDescription> </field> <field name="lines" class="java.util.ArrayList"> <fieldDescription><![CDATA[lines]]></fieldDescription> </field> <field name="termsAndCondns" class="java.util.ArrayList"> <fieldDescription><![CDATA[termsAndCondns]]></fieldDescription> </field> <field name="authSig" class="java.util.ArrayList"> <fieldDescription><![CDATA[authSig]]></fieldDescription> </field> <field name="totalQuantity" class="java.lang.Long"> <fieldDescription><![CDATA[totalQuantity]]></fieldDescription> </field> <field name="totalValue" class="java.lang.Double"> <fieldDescription><![CDATA[totalValue]]></fieldDescription> </field> <background> <band height="550" splitType="Stretch"> <image evaluationTime="Report"> <reportElement x="0" y="0" width="842" height="530"/> <imageExpression class="java.lang.String"> <![CDATA[$P{IS_LOCKED}.booleanValue() ? ($P{IMAGE_PATH} +"/draft-wm2.jpg") : ($P{IMAGE_PATH} +"/blank_image.jpg")]]> </imageExpression> </image> </band> </background> <title> </title> <pageHeader> <band height="70"> <image scaleImage="RetainShape" isUsingCache="true"> <reportElement x="0" y="5" width="165" height="30"/> <graphicElement/> <imageExpression class="java.awt.Image">$P{AOLImage}</imageExpression> </image> <textField isBlankWhenNull="true" bookmarkLevel="1"> <reportElement x="270" y="10" width="460" height="60" style="Sans_Normal"/> <textElement textAlignment="Right"> <font size="8"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{CompanyInfo}]]></textFieldExpression> </textField> <textField isBlankWhenNull="true" bookmarkLevel="1"> <reportElement x="80" y="40" width="515" height="25" style="Sans_Normal"/> <textElement textAlignment="Center"> <font size="14"/> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{ReportHeader}]]></textFieldExpression> </textField> </band> </pageHeader> <detail> <band height="250" splitType="Stretch"> <subreport isUsingCache="true"> <reportElement positionType="Float" isPrintRepeatedValues="false" x="0" y="10" width="295" height="20"/> <dataSourceExpression><![CDATA[new JRBeanCollectionDataSource($F{contInfo})]]></dataSourceExpression> <subreportExpression class="java.lang.String"> <![CDATA[$P{SUBREPORT_PATH} + "/ContractInfo.jasper"]]></subreportExpression> </subreport> <subreport isUsingCache="true"> <reportElement positionType="Float" x="250" y="10" width="175" height="20" isRemoveLineWhenBlank="true" backcolor="#99ccff"/> <subreportParameter name="sectionName"> <subreportParameterExpression><![CDATA[$P{sectionName}]]></subreportParameterExpression> </subreportParameter> <dataSourceExpression><![CDATA[new JRBeanCollectionDataSource($F{advInfo})]]></dataSourceExpression> <subreportExpression class="java.lang.String"> <![CDATA[$P{SUBREPORT_PATH} + "/AdvertiserInfo.jasper"]]></subreportExpression> </subreport> <subreport isUsingCache="true"> <reportElement positionType="Float" x="480" y="10" width="255" height="20" isRemoveLineWhenBlank="true" backcolor="#99ccff"/> <dataSourceExpression><![CDATA[new JRBeanCollectionDataSource($F{summary})]]></dataSourceExpression> <subreportExpression class="java.lang.String"> <![CDATA[$P{SUBREPORT_PATH} + "/SummaryInfo.jasper"]]></subreportExpression> </subreport> <subreport isUsingCache="true"> <reportElement positionType="Float" x="0" y="90" width="250" height="20" backcolor="#99ccff"/> <dataSourceExpression> <![CDATA[new JRBeanCollectionDataSource($F{generalComments})]]></dataSourceExpression> <subreportExpression class="java.lang.String"> <![CDATA[$P{SUBREPORT_PATH} + "/GeneralComments.jasper"]]></subreportExpression> </subreport> <subreport isUsingCache="true"> <reportElement positionType="Float" x="0" y="115" width="175" height="20" backcolor="#99ccff"/> <dataSourceExpression> <![CDATA[new JRBeanCollectionDataSource($F{creativeSpecs})]]></dataSourceExpression> <subreportExpression class="java.lang.String"> <![CDATA[$P{SUBREPORT_PATH} + "/CreativeSpecs.jasper"]]></subreportExpression> </subreport> <subreport isUsingCache="true"> <reportElement positionType="Float" x="0" y="100" width="550" height="20" backcolor="#99ccff"/> <subreportParameter name="totalQuantity"> <subreportParameterExpression><![CDATA[$F{totalQuantity}]]></subreportParameterExpression> </subreportParameter> <subreportParameter name="totalValue"> <subreportParameterExpression><![CDATA[$F{totalValue}]]></subreportParameterExpression> </subreportParameter> <dataSourceExpression> <![CDATA[new JRBeanCollectionDataSource($F{lines})]]></dataSourceExpression> <subreportExpression class="java.lang.String"> <![CDATA[$P{SUBREPORT_PATH} + "/Lines.jasper"]]></subreportExpression> </subreport> <subreport isUsingCache="true"> <reportElement positionType="Float" x="0" y="130" width="175" height="20" isRemoveLineWhenBlank="true" backcolor="#99ccff"/> <dataSourceExpression> <![CDATA[new JRBeanCollectionDataSource($F{termsAndCondns})]]></dataSourceExpression> <subreportExpression class="java.lang.String"> <![CDATA[$P{SUBREPORT_PATH} + "/TermsAndConditions.jasper"]]></subreportExpression> </subreport> <subreport isUsingCache="true"> <reportElement positionType="Float" x="0" y="165" width="175" height="20" isRemoveLineWhenBlank="true" backcolor="#99ccff"/> <dataSourceExpression> <![CDATA[new JRBeanCollectionDataSource($F{authSig})]]></dataSourceExpression> <subreportExpression class="java.lang.String"> <![CDATA[$P{SUBREPORT_PATH} + "/AuthSignature.jasper"]]></subreportExpression> </subreport> <subreport isUsingCache="true"> <reportElement positionType="Float" x="0" y="190" width="175" height="20" isRemoveLineWhenBlank="true" backcolor="#99ccff"/> <subreportParameter name="signature"> <subreportParameterExpression><![CDATA[$P{Signature}]]></subreportParameterExpression> </subreportParameter> <dataSourceExpression> <![CDATA[new JRBeanCollectionDataSource($F{authSig})]]></dataSourceExpression> <subreportExpression class="java.lang.String"> <![CDATA[$P{SUBREPORT_PATH} + "/AolSignature.jasper"]]></subreportExpression> </subreport> <subreport isUsingCache="true"> <reportElement positionType="Float" x="0" y="190" width="175" height="20" isRemoveLineWhenBlank="true" backcolor="#99ccff"/> <dataSourceExpression> <![CDATA[new JRBeanCollectionDataSource($F{authSig})]]></dataSourceExpression> <subreportExpression class="java.lang.String"> <![CDATA[$P{SUBREPORT_PATH} + "/CustomerSignature.jasper"]]></subreportExpression> </subreport> </band> </detail> <pageFooter> <band height="40"> <textField> <reportElement x="280" y="20" width="105" height="15"/> <textElement textAlignment="Right"/> <textFieldExpression class="java.lang.String"> <![CDATA[$P{PLAN_ID}+"("+ $P{VERSION} + ")"+ " Page " + String.valueOf($V{PAGE_NUMBER}) + " /"]]></textFieldExpression> </textField> <textField evaluationTime="Report"> <reportElement x="385" y="20" width="75" height="15"/> <textElement/> <textFieldExpression class="java.lang.String"> <![CDATA[" " + String.valueOf($V{PAGE_NUMBER})]]></textFieldExpression> </textField> </band> </pageFooter> <summary> <band height="0"> <printWhenExpression>Boolean.FALSE</printWhenExpression> </band> </summary></jasperReport>
×
×
  • Create New...