fuzziusz Posted July 16, 2013 Share Posted July 16, 2013 Hello,I have quite simple report designed in IReport (5.1.0). When I checked it as IReport internal preview everything is OK. But when I generate PDF I can see that spaces between records are not equal.It is quite strange and I just don't have idea what is going on?It doesn't seem that it depends on record value.Can somebody help?Here is what it looks like (from PDF): Report 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="sub06" pageWidth="70" pageHeight="255" columnWidth="70" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" isSummaryWithPageHeaderAndFooter="true" uuid="91463ee8-506f-4732-b6ab-7492af3c5685"> <property name="ireport.scriptlethandling" value="0"/> <property name="ireport.encoding" value="UTF-8"/> <property name="ireport.zoom" value="5.259203606311049"/> <property name="ireport.x" value="0"/> <property name="ireport.y" value="132"/> <import value="net.sf.jasperreports.engine.*"/> <import value="java.util.*"/> <import value="net.sf.jasperreports.engine.data.*"/> <parameter name="myid" class="java.lang.String"/> <parameter name="SUBREPORT_DIR" class="java.lang.String" isForPrompting="false"> <defaultValueExpression><![CDATA["."]]></defaultValueExpression> </parameter> <parameter name="start_pn" class="java.lang.Integer"/> <queryString> <![CDATA[sELECT * FROM TABLE(createreport_p.GET_DATA($P{myid}))]]> </queryString> <field name="BLOCK_NAME" class="java.lang.String"/> <field name="PICTOGRAM" class="oracle.sql.BLOB"/> <field name="VALUE" class="java.lang.String"/> <background> <band height="255" splitType="Stretch"> <rectangle> <reportElement uuid="b3374d14-b7b3-4f8b-8227-4efee4d5ee0d" x="0" y="0" width="70" height="255"/> </rectangle> </band> </background> <title> <band splitType="Stretch"/> </title> <pageHeader> <band height="15" splitType="Stretch"> <textField> <reportElement uuid="1229f75f-dc04-4977-9b7c-0bd9a6eaff4a" x="0" y="4" width="70" height="10"/> <box leftPadding="2"/> <textElement> <font fontName="Arial" size="4"/> </textElement> <textFieldExpression><![CDATA[$P{start_pn} + ($V{PAGE_NUMBER} - 1)]]></textFieldExpression> </textField> <line> <reportElement uuid="4f0806ed-43b7-4a80-a34a-4af5026dfe8e" positionType="FixRelativeToBottom" x="0" y="13" width="70" height="1"/> <graphicElement> <pen lineWidth="0.5" lineStyle="Dashed"/> </graphicElement> </line> </band> </pageHeader> <columnHeader> <band splitType="Stretch"/> </columnHeader> <detail> <band height="14" splitType="Prevent"> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement uuid="8994a047-5e15-4120-9f91-84d208afd7b2" key="textField" positionType="Float" x="0" y="0" width="70" height="6" isRemoveLineWhenBlank="true"/> <box leftPadding="2" rightPadding="2"/> <textElement> <font fontName="Arial" size="4" isBold="true"/> </textElement> <textFieldExpression><![CDATA[$F{BLOCK_NAME}]]></textFieldExpression> </textField> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement uuid="192cec67-2829-43a1-97fb-ea4f61676d09" key="textField" positionType="Float" mode="Transparent" x="0" y="6" width="55" height="6" isRemoveLineWhenBlank="true"/> <box leftPadding="2" bottomPadding="1" rightPadding="2"/> <textElement> <font fontName="Arial" size="4" isBold="true"/> </textElement> <textFieldExpression><![CDATA[$F{VALUE}]]></textFieldExpression> </textField> <image scaleImage="Clip" hAlign="Center" vAlign="Middle"> <reportElement uuid="86d862fe-b1ab-49fb-8fa5-33234f0b1283" key="image-1" positionType="Float" x="55" y="6" width="15" height="8"/> <box leftPadding="2" rightPadding="2"/> <imageExpression><![CDATA[net.sf.jasperreports.renderers.BatikRenderer.getInstance($F{PICTOGRAM}.getBinaryStream())]]></imageExpression> </image> </band> </detail> <columnFooter> <band splitType="Stretch"/> </columnFooter> <pageFooter> <band splitType="Stretch"/> </pageFooter> <summary> <band height="72" splitType="Stretch"> <subreport> <reportElement uuid="9607ebf4-6f22-44ac-a729-f657fbd2369b" positionType="Float" x="0" y="65" width="70" height="6"/> <subreportParameter name="myid"> <subreportParameterExpression><![CDATA[$P{myid}]]></subreportParameterExpression> </subreportParameter> <subreportParameter name="oc_blname"> <subreportParameterExpression><![CDATA[]]></subreportParameterExpression> </subreportParameter> <connectionExpression><![CDATA[$P{REPORT_CONNECTION}]]></connectionExpression> <subreportExpression><![CDATA[$P{SUBREPORT_DIR} + "sub07_big.jasper"]]></subreportExpression> </subreport> <staticText> <reportElement uuid="d5e4b228-218f-4940-bcb4-b92a0b844cff" positionType="Float" x="0" y="0" width="70" height="65"/> <textElement textAlignment="Center" verticalAlignment="Middle" rotation="Left" markup="none"> <font fontName="Arial" size="5" isBold="true"/> </textElement> <text><![CDATA[PLACE FOR ADDITIONAL TEXT]]></text> </staticText> </band> </summary></jasperReport>[/code] Thanks in advance for any help. Link to comment Share on other sites More sharing options...
shree909 Posted July 16, 2013 Share Posted July 16, 2013 I think u have left same space after the field name in the band.if u compress that band to the field names that u will get avoid the extra space .. Link to comment Share on other sites More sharing options...
fuzziusz Posted July 17, 2013 Author Share Posted July 17, 2013 No.There is only some space that is desirable by me ("small space").But why on PDF (and only on PDF) this space is sometimes larger? Link to comment Share on other sites More sharing options...
gopalreddy436 Posted November 30, 2015 Share Posted November 30, 2015 Dear fuzziusz, I am also facing same issue in i Report 4.7.1 version . Please tell me how you resolved the issue as soon as possible. Thanks in advance for your help. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now