Jasper IReport Text Preview

Hi guys, can some one please help me. I'm trying to get a report which shows me a list of persons and it needs to be a  .txt file.  But when i preview the .txt file has 2 blank spaces for every page. In short can i make a report with a data only in one big page?

Waneta Sills  
Luann Willcox  
Mao Askey  
Benny Beauregard  
Jeanett Haberman  
Jamie Pepper  
Francisco Holm  
Kimbra Lara  
Beverly Poyer  
Shelba Terrel  
Carmel Willams  
                                         i wanna ger rid of this two  
                                        blank spaces  
Kirsten Caroll  
Vertie Branson  
Marla Felberbaum  
Donita Robbs  
Jada Zhou  
Alisia Garceau  
Luna Rezentes  
Glenn Garriott  
Kasandra Crimi


ahmy_1's picture
Joined: Jun 9 2016 - 12:40am
Last seen: 3 years 9 months ago

2 Answers:

You probably have margins or page footer in your report design. Can't say too much because you haven't provided your jrxml.

hozawa's picture
Joined: Apr 24 2010 - 4:31pm
Last seen: 4 years 3 months ago
<?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="text_output" language="groovy" pageWidth="555" pageHeight="802" columnWidth="555" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" uuid="9a0b1db2-1ed0-44e1-960b-4626cea0097d">
<property name="net.sf.jasperreports.export.text.page.width" value="80"/>
<property name="net.sf.jasperreports.export.text.page.height" value="40"/>
<property name="ireport.zoom" value="1.4641000000000008"/>
<property name="ireport.x" value="0"/>
<property name="ireport.y" value="0"/>
<![CDATA[  select  FirstName, MiddleName, LastName
  from student
  where id < 500]]>
<field name="FirstName" class="java.lang.String"/>
<field name="MiddleName" class="java.lang.String"/>
<field name="LastName" class="java.lang.String"/>
<band height="20">
<reportElement uuid="0d85fdfa-a227-4d79-8c67-e9bec2e4edbd" x="0" y="0" width="454" height="20"/>
<font fontName="Consolas"/>
<band height="20" splitType="Stretch">
<reportElement uuid="9094fe84-25d6-4eff-878e-29fc12ead2a6" x="0" y="0" width="454" height="20" isPrintWhenDetailOverflows="true"/>
<font fontName="Consolas"/>
<textFieldExpression><![CDATA[$F{FirstName} + " " + $F{MiddleName} + " " + $F{LastName}]]></textFieldExpression>
ahmy_1's picture
Joined: Jun 9 2016 - 12:40am
Last seen: 3 years 9 months ago