Jump to content
Changes to the Jaspersoft community edition download ×

Handle extra space between row


Recommended Posts

HI all, we find there is extra space between row and we have tried lots of method including "isPrintWhenDetailOverflows" or increasing padding but still no luck.

Below is the report look likes now :


Below is the report we want to have :


And here is the XML of our report :

<?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="ApplicationSummaryReport_OEARPg" language="groovy" pageWidth="554" pageHeight="842" columnWidth="554" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0">
<property name="ireport.zoom" value="2.0490403660952117"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.columns" value="true"/>
<property name="net.sf.jasperreports.export.xls.remove.empty.space.between.rows" value="true"/>
<field name="majorResponsibility" class="java.lang.String">
<band splitType="Stretch"/>
<band height="10" splitType="Immediate">
<reportElement x="275" y="0" width="100" height="10" isPrintWhenDetailOverflows="true"/>
<box leftPadding="0">
<leftPen lineWidth="0.0"/>
<bottomPen lineWidth="0.0"/>
<font size="7" isBold="true" pdfFontName="Helvetica" pdfEncoding="Cp1252"/>
<text><![CDATA[Major Responsibilities]]></text>
<textField isStretchWithOverflow="true" evaluationTime="Auto" isBlankWhenNull="true">
<reportElement stretchType="RelativeToBandHeight" x="375" y="0" width="179" height="10" isPrintWhenDetailOverflows="true"/>
<box topPadding="0" bottomPadding="0">
<bottomPen lineWidth="0.0"/>
<rightPen lineWidth="0.75"/>
<textElement verticalAlignment="Top">
<font size="7" pdfFontName="Helvetica" pdfEncoding="Cp1252"/>
<textFieldExpression class="java.lang.String"><![CDATA[$F{majorResponsibility}.trim()]]></textFieldExpression>
<band height="14" splitType="Immediate">
<reportElement stretchType="RelativeToTallestObject" x="275" y="0" width="100" height="10" isPrintWhenDetailOverflows="true"/>
<bottomPen lineWidth="0.0"/>
<font size="7" isBold="true"/>
<text><![CDATA[Modify User/Date]]></text>
<reportElement stretchType="RelativeToTallestObject" x="375" y="0" width="179" height="10" isPrintWhenDetailOverflows="true"/>
<textElement markup="none">
<font size="7"/>
We are using Jasper report version 3.7.5 .Appreciate for any advise. Thank you
Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Sorry but the version you're using is outdated and I don't know if the feature I know is supported in that version.

I would just group by majorResponsibilty and print users in the detail band.

Also, don't know if your version supports it or not but have you tried checking "Remove Line When Blank"?

FYI, I'm using Jaspersoft Studio 6.4.0

Link to comment
Share on other sites

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