Wednesday, December 26, 2012

Leading zeroes formatting ireport

Hi, welcome to my blog. Are you having problem formatting leading zeroes in jasper ireport
for example:

1--->001
 10-->010

Steps:
1.Right clikc the textfield -->field pattern --->put the number of zero corresponding to the number of digit you want.
2. For the above example , I have three digits so I should put  000
3. Rock it !!!!!!!!!


Monday, September 17, 2012

Jasper report: column footer not appearing directly below detail band

Maybe you wanted the column footer to appear directly below the detail band without success.
Certainly this tips may help you.
1.Go to designer view ---> Report inspector -->right click report name --->properties-->Check "Float column Footer".
2.Go back to design view --->set the height of summary band to zero or just delete it.
3. Rock your world.

Thursday, July 19, 2012

Ireport : forward a broken row to the new page

Suppose a row height is so long that it is spread on two pages.
Using this option will do the job
<columnHeader>
        <band height="20" splitType="Prevent">
            <staticText>
</staticText>
        </band>
    </columnHeader>
<detail>
        <band height="18" splitType="Prevent">
            <textField isStretchWithOverflow="true" isBlankWhenNull="false">
                .....
            </textField>
</detail>