Jump to content
Changes to the Jaspersoft community edition download ×

2005 IR Help

Recommended Posts

By: just - justjasper

no error

2004-02-16 07:13

i design a simple report by iReport0.2 without data source (Empty data source),and i get *.xml and *.jasper and *.pdf every thing ok.then i use the *.xml file in jasperReport0.5 as documents say.i compile *.xml then fill *.jasper then run *.jasper and i have *.pdf file BUT its empty without any thing,ever i write some text in the report..

plz where the problem ,i did every thing as site and document said..





By: Teodor Danciu - teodord

RE: no error

2004-02-16 10:07




I'm not sure how iReport deals with the preview,

but I suspect it supplies you report with a

new JREmptyDataSource().

This means you'll have a data source with one record

and all the fields null.


You should do the same when launching the report

from you application. Supply it with new JREmptyDataSource() when filling and you obtain the

same result.


Or, you could use dataType="AllSectionsNoDetail" in

you report design and it will generate some sections

even when the data source is null.


I hope this helps.







By: just - justjasper

RE: no error

2004-02-16 23:45


thanks for reply me.im with u for all what u said but this is the *.xml file that i have ,can u help me to know where is the error.

its just simple report ,i just write one word in it.

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd">

<jasperReport name="NewReport" columnCount="1" pageWidth="612" pageHeight="792" columnWidth="540" columnSpacing="0" leftMargin="36" rightMargin="36" topMargin="36" bottomMargin="36">


<band height="0" />



<band height="39">


<reportElement positionType="Float" mode="Transparent" x="157" y="6" width="268" height="28" forecolor="#ff3333" />


<font fontName="Helvetica" size="10" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" />







<band height="0" />



<band height="34" />



<band height="0" />



<band height="36" />



<band height="0" />









By: Teodor Danciu - teodord

RE: no error

2004-02-18 13:03




I'm sorry, but I don't think you are with me for

all I've said in the previous message.


I told you to use dataType="AllSectionsNoDetail"

and you did not, did you?


We're getting nowhere fast this way...


Thank you,


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