Jump to content
We've recently updated our Privacy Statement, available here ×

Jasper IReport Text Preview


ahmy_1

Recommended Posts

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

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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

 

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