Jump to content

Dynamically Hiding Columns Problem


Devendra Sharma

Recommended Posts

Hi,

I have 6 text field from which first and last contain large value( 6000 char) and other haven't value , in out put there are a blank space in bottom page , I have played with Stretch type & position type  and also did changes in Blank When Line Blankbut isn't work.

jrxml:

<?xml version="1.0" encoding="UTF-8"?>
<!-- Created with Jaspersoft Studio version 6.5.0.final using JasperReports Library version 6.5.0  -->
<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="Blank_A4_3" pageWidth="595" pageHeight="792" columnWidth="575" leftMargin="10" rightMargin="10" topMargin="10" bottomMargin="10" uuid="486627bb-35ca-4a69-914f-5c413526f574">
    <property name="com.jaspersoft.studio.data.defaultdataadapter" value="LocalDB"/>
    <property name="com.jaspersoft.studio.unit." value="pixel"/>
    <property name="com.jaspersoft.studio.unit.pageHeight" value="pixel"/>
    <property name="com.jaspersoft.studio.unit.pageWidth" value="pixel"/>
    <property name="com.jaspersoft.studio.unit.topMargin" value="pixel"/>
    <property name="com.jaspersoft.studio.unit.bottomMargin" value="pixel"/>
    <property name="com.jaspersoft.studio.unit.leftMargin" value="pixel"/>
    <property name="com.jaspersoft.studio.unit.rightMargin" value="pixel"/>
    <property name="com.jaspersoft.studio.unit.columnWidth" value="pixel"/>
    <property name="com.jaspersoft.studio.unit.columnSpacing" value="pixel"/>
    <queryString>
        <![CDATA[select MDR_AE_SOC from GTT_PSR_Form_3]]>
    </queryString>
    <field name="MDR_AE_SOC" class="java.lang.String"/>
    <detail>
        <band height="275" splitType="Stretch">
            <property name="com.jaspersoft.studio.unit.height" value="px"/>
            <textField isStretchWithOverflow="true" isBlankWhenNull="true">
                <reportElement x="0" y="0" width="550" height="45" uuid="5a522879-65b7-4732-a2a7-92f2b77d8fae">
                    <property name="com.jaspersoft.studio.unit.y" value="px"/>
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <textFieldExpression><![CDATA[$F{MDR_AE_SOC}]]></textFieldExpression>
            </textField>
            <textField isBlankWhenNull="true">
                <reportElement positionType="Float" x="0" y="45" width="550" height="45" uuid="b793f117-d091-4357-94a8-f0edd2053b82">
                    <property name="com.jaspersoft.studio.unit.y" value="px"/>
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
            </textField>
            <textField isBlankWhenNull="true">
                <reportElement positionType="Float" x="0" y="90" width="550" height="45" uuid="f4201d6d-e786-415f-96bc-ee6e91c68b49">
                    <property name="com.jaspersoft.studio.unit.y" value="px"/>
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
            </textField>
            <textField isBlankWhenNull="true">
                <reportElement positionType="Float" x="0" y="135" width="550" height="45" uuid="94c3e6d6-625a-4980-9615-63eb56be9375">
                    <property name="com.jaspersoft.studio.unit.y" value="px"/>
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
            </textField>
            <textField isBlankWhenNull="true">
                <reportElement positionType="Float" x="0" y="180" width="550" height="45" uuid="292bd1a0-1dc2-480a-a1d1-8255fc3c9a02">
                    <property name="com.jaspersoft.studio.unit.y" value="px"/>
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
            </textField>
            <textField isStretchWithOverflow="true" isBlankWhenNull="true">
                <reportElement positionType="Float" x="0" y="225" width="550" height="45" uuid="945c2530-1f7f-44ab-957d-aca2fb132b98">
                    <property name="com.jaspersoft.studio.unit.y" value="px"/>
                    <property name="com.jaspersoft.studio.unit.height" value="px"/>
                </reportElement>
                <textFieldExpression><![CDATA[$F{MDR_AE_SOC}]]></textFieldExpression>
            </textField>
        </band>
    </detail>
</jasperReport>
 

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Popular Days

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