murali.kailasapu Posted March 24, 2016 Share Posted March 24, 2016 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] Link to comment Share on other sites More sharing options...
hozawa Posted March 24, 2016 Share Posted March 24, 2016 Set the page height to 130 px. Link to comment Share on other sites More sharing options...
murali.kailasapu Posted March 25, 2016 Author Share Posted March 25, 2016 Thanks, can you tell me how to use report server and all ? Link to comment Share on other sites More sharing options...
hozawa Posted March 26, 2016 Share Posted March 26, 2016 Just edit the report properties and set the height. No need to do anything else. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now