Jump to content

I can not get iReport 3.0.0 working


readonly

Recommended Posts

Hello:

A few weeks ago I posted a problem but I think I didn't gave details enough so I'm going to do an extensive explanation (screenshots included) in order to someone can help me. I'm about to shoot myself.

I'm using iReport 3.0.0 because my project doesn't support a newer version. My problem isn't complex. Indeed, I have a problem with a helloworld report so I suppose I have any kind of configuration problem.

I have a file named friends.csv which contains the following:

name;email

"Archimonde";"archy@argus.net"

"Kil'Jaeden";"killy@argus.net"

"Velen";"velly@argus.net"

I launch iReport 3.0.0 and set up this datasource:

<See SC01.jpg>

 I create a report and set the report query:

<See SC02.jpg>

 I include my two tiny fields:

 <See SC03.jpg>

 And I get this:

 <See SC04.jpg>

 The file generated is in the "Code" section.

 I've tested this with CSV, MySQL and Postgres datasources, and in Windoes XP, Vista and Ubuntu. And I got always the same.

 Any idea? Thank you.

 

Code:
<?xml version="1.0" encoding="UTF-8"  ?><!-- Created with iReport - A designer for JasperReports --><!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"><jasperReport		 name="TestCSV"		 columnCount="1"		 printOrder="Vertical"		 orientation="Portrait"		 pageWidth="595"		 pageHeight="842"		 columnWidth="535"		 columnSpacing="0"		 leftMargin="30"		 rightMargin="30"		 topMargin="20"		 bottomMargin="20"		 whenNoDataType="NoPages"		 isTitleNewPage="false"		 isSummaryNewPage="false">	<property name="ireport.scriptlethandling" value="2" />	<property name="ireport.encoding" value="UTF-8" />	<import value="java.util.*" />	<import value="net.sf.jasperreports.engine.*" />	<import value="net.sf.jasperreports.engine.data.*" />	<field name="name" class="java.lang.String"/>	<field name="email" class="java.lang.String"/>		<background>			<band height="0"  isSplitAllowed="true" >			</band>		</background>		<title>			<band height="50"  isSplitAllowed="true" >			</band>		</title>		<pageHeader>			<band height="50"  isSplitAllowed="true" >			</band>		</pageHeader>		<columnHeader>			<band height="30"  isSplitAllowed="true" >				<staticText>					<reportElement						x="16"						y="10"						width="104"						height="18"						key="staticText-1"/>					<box></box>					<textElement>						<font/>					</textElement>				<text><![CDATA[Name]]></text>				</staticText>				<staticText>					<reportElement						x="133"						y="10"						width="104"						height="18"						key="staticText-2"/>					<box></box>					<textElement>						<font/>					</textElement>				<text><![CDATA[email]]></text>				</staticText>			</band>		</columnHeader>		<detail>			<band height="44"  isSplitAllowed="true" >				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >					<reportElement						x="19"						y="12"						width="100"						height="18"						key="textField"/>					<box></box>					<textElement>						<font/>					</textElement>				<textFieldExpression   class="java.lang.String"><![CDATA[$F{name}]]></textFieldExpression>				</textField>				<textField isStretchWithOverflow="false" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None"  hyperlinkTarget="Self" >					<reportElement						x="133"						y="12"						width="100"						height="18"						key="textField"/>					<box></box>					<textElement>						<font/>					</textElement>				<textFieldExpression   class="java.lang.String"><![CDATA[$F{email}]]></textFieldExpression>				</textField>			</band>		</detail>		<columnFooter>			<band height="30"  isSplitAllowed="true" >			</band>		</columnFooter>		<pageFooter>			<band height="50"  isSplitAllowed="true" >			</band>		</pageFooter>		<lastPageFooter>			<band height="50"  isSplitAllowed="true" >			</band>		</lastPageFooter>		<summary>			<band height="50"  isSplitAllowed="true" >			</band>		</summary></jasperReport>
Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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