Jump to content
Changes to the Jaspersoft community edition download ×

How to remove the bottom white space in the report ?


murali.kailasapu

Recommended Posts

 

HI all,

 

i am new to jasper reports. When i am generating the report i am getting some white space on bottom of the report. i placed the report in the summary band. to get the single chart. If its wrong correct me  and give me a solution to remove the white space. i marked that place into red color.

the code is ::

<?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="report1" language="groovy" pageWidth="595" pageHeight="421"              orientation="Landscape" columnWidth="573" leftMargin="20" rightMargin="2"              topMargin="20" bottomMargin="5" uuid="f4a7a190-70f6-44c9-b4c5-b21d1d12045d">  <property name="ireport.zoom" value="1.0"/>  <property name="ireport.x" value="0"/>  <property name="ireport.y" value="0"/>  <queryString>    <![CDATA[sELECT TOP 5 [ProcessType] as processId             ,count(*) as size             FROM [MofaConnect].[dbo].[MFC_RequiredDocuments]             group by ProcessType]]>  </queryString>  <field name="processId" class="java.lang.String"/>  <field name="size" class="java.lang.Integer"/>  <background>    <band splitType="Stretch"/>  </background>  <summary>    <band height="129" splitType="Immediate">      <barChart>        <chart>          <reportElement positionType="Float" stretchType="RelativeToBandHeight"                         x="0" y="0" width="572" height="129"                         uuid="082c93be-cbf4-4bf5-9353-2ef72ba974e6"/>          <chartTitle position="Top"/>          <chartSubtitle/>          <chartLegend/>        </chart>        <categoryDataset>          <categorySeries>            <seriesExpression>              <![CDATA[$F{processId}.trim()+"v/s"+$F{size}]]>            </seriesExpression>            <categoryExpression>              <![CDATA[$F{processId}]]>            </categoryExpression>            <valueExpression>              <![CDATA[$F{size}]]>            </valueExpression>          </categorySeries>        </categoryDataset>        <barPlot>          <plot/>          <itemLabel/>          <categoryAxisLabelExpression>            <![CDATA[$F{processId}]]>          </categoryAxisLabelExpression>          <categoryAxisFormat>            <axisFormat/>          </categoryAxisFormat>          <valueAxisFormat>            <axisFormat/>          </valueAxisFormat>        </barPlot>      </barChart>    </band>  </summary></jasperReport>[/code]

sss(1).png.f377e2254cc67f9325fd9e3df5cece10.png

 

 

sss(1).png.743bbb75c1cb5b4cc6a8eea63cc813a2.png

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

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