2005 IR Help Posted August 22, 2006 Share Posted August 22, 2006 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 Hi, 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. Teodor By: just - justjasper RE: no error 2004-02-16 23:45 hi, 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"> <title> <band height="0" /> </title> <pageHeader> <band height="39"> <staticText> <reportElement positionType="Float" mode="Transparent" x="157" y="6" width="268" height="28" forecolor="#ff3333" /> <textElement> <font fontName="Helvetica" size="10" pdfFontName="Helvetica" pdfEncoding="Cp1252" isPdfEmbedded="false" /> </textElement> <text>"testttttttttttttttttttttttttttttttttt"</text> </staticText> </band> </pageHeader> <columnHeader> <band height="0" /> </columnHeader> <detail> <band height="34" /> </detail> <columnFooter> <band height="0" /> </columnFooter> <pageFooter> <band height="36" /> </pageFooter> <summary> <band height="0" /> </summary> </jasperReport> By: Teodor Danciu - teodord RE: no error 2004-02-18 13:03 Hi, 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, Teodor Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now