Jasper IReport Text Preview

0

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
23
Joined: Jun 9 2016 - 12:40am
Last seen: 7 months 1 week ago

2 Answers:

0

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
47007
Joined: Apr 24 2010 - 4:31pm
Last seen: 2 months 1 week ago
0
<?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"/>
<queryString>
<![CDATA[  select  FirstName, MiddleName, LastName
  from student
  where id < 500]]>
</queryString>
<field name="FirstName" class="java.lang.String"/>
<field name="MiddleName" class="java.lang.String"/>
<field name="LastName" class="java.lang.String"/>
<title>
<band height="20">
<staticText>
<reportElement uuid="0d85fdfa-a227-4d79-8c67-e9bec2e4edbd" x="0" y="0" width="454" height="20"/>
<textElement>
<font fontName="Consolas"/>
</textElement>
<text><![CDATA[Empoyees]]></text>
</staticText>
</band>
</title>
<detail>
<band height="20" splitType="Stretch">
<textField>
<reportElement uuid="9094fe84-25d6-4eff-878e-29fc12ead2a6" x="0" y="0" width="454" height="20" isPrintWhenDetailOverflows="true"/>
<textElement>
<font fontName="Consolas"/>
</textElement>
<textFieldExpression><![CDATA[$F{FirstName} + " " + $F{MiddleName} + " " + $F{LastName}]]></textFieldExpression>
</textField>
</band>
</detail>
</jasperReport>
 
ahmy_1's picture
23
Joined: Jun 9 2016 - 12:40am
Last seen: 7 months 1 week ago
Feedback
randomness