Jump to content

fuzziusz

Members
  • Posts

    4
  • Joined

  • Last visited

fuzziusz's Achievements

Rookie

Rookie (2/14)

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

Recent Badges

0

Reputation

  1. 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?
  2. Hello, Does anyone know how to design variable position margins in IReport (i am using v. 5.1.0)? I mean, i.e.: first page - margin 2,5cm on the left, right margin 1cm, second page - margin on the right 2,5cm, left margin 1cm, third page - margin on the left 2,5cm, on the right 1cm, and so on. In my report margin (only 2,5cm) is marked with dashed line. I was able to print it or not as I want based on 'print when expression' but I have to set both margins as 2,5cm. If I am not then my records are printed passed the line. Thanks in advance for any help!
  3. 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.
  4. Hello, I have a very simple report designed in IReport. Reports query returns many records and only one column. On the report I have only one text field. I don't want to have records split across pages so I choose 'Prevent' as band Split Type. Now if record does not fit onto first page, it is printed on second and whole first page is blank. Why ??? I searched this forum for similar problem but none solution worked for me. This is my 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="WCL_sub05" pageWidth="127" pageHeight="56" orientation="Landscape" columnWidth="127" leftMargin="0" rightMargin="0" topMargin="2" bottomMargin="0" uuid="aba2087c-b488-40e1-abf6-dbaebba16652"> <property name="ireport.scriptlethandling" value="0"/> <property name="ireport.encoding" value="UTF-8"/> <property name="ireport.zoom" value="9.680000000000007"/> <property name="ireport.x" value="0"/> <property name="ireport.y" value="0"/> <import value="net.sf.jasperreports.engine.*"/> <import value="java.util.*"/> <import value="net.sf.jasperreports.engine.data.*"/> <parameter name="WCLR_WCL_id" class="java.lang.String"/> <queryString> <![CDATA[sELECT * FROM TABLE(OA_WCL_CREATEREPORT_P.GET_CARE_EXTRA_INFO($P{WCLR_WCL_id}))]]> </queryString> <field name="COLUMN_VALUE" class="java.lang.String"/> <detail> <band height="5" splitType="Prevent"> <textField isStretchWithOverflow="true" isBlankWhenNull="true"> <reportElement uuid="a975e219-a471-494c-bdde-d030bc1e6172" key="textField" positionType="Float" mode="Transparent" x="0" y="0" width="95" height="5" isRemoveLineWhenBlank="true"/> <box topPadding="0" bottomPadding="0"/> <textElement> <font fontName="Arial" size="3" isBold="true"/> </textElement> <textFieldExpression><![CDATA[$F{COLUMN_VALUE}]]></textFieldExpression> </textField> </band> </detail></jasperReport>[/code] Thanks in advance for any help.
×
×
  • Create New...