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

choang

Members
  • Posts

    9
  • Joined

  • Last visited

choang's Achievements

Apprentice

Apprentice (3/14)

  • One Year In
  • Week One Done
  • One Month Later
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. Hello, I have a .jrxml file that works fine with iReport 1.3.3. But when I opened it with iReport Designer Professional 4.0.1 and compiled it, it would produce the following error when I built and ran my program : Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException at net.sf.jasperreport.engine.fill.JRFiller.fillReport(JRFiller.java:89) I wonder if someone could please tell me how to fix this problem? Thank you and Best Regards, Akino
  2. Hello, I am working to maintain an existing Jasper report application. And I have a question I wonder if someone could please help me? My existing code looks like this : public class Report implement JRDataSource{ BugContainer [] bugs int index; int length; int maxLength; .............. .............. public boolean next() { if (index < length-1) { index++; return true; } else return false; } When getFieldValue() is called, the data in "bugs" is returned. And this existing code works fine. Now for a new enhancement, I would like to add to "Report" the following code : TRCContainer [] TRCs; int trcIndex; int trcLength; int trcMaxLength; My question is how many data structure, from which Jasper report would get data, can I have in an object that implements JRDataSource like Report in this case? If I can have 2 such data structures, then how do I implement the next() method so that it would work for both data structure? Thank you and Best Regards, Akino
  3. Hello Teodor, Thank you very much for your help. Only set isSummaryNewPage to "true" but not both as you said solved the problem. Best Regards, Akino
  4. Hello Teodor, Thank you very much for your help. I intentionally set isTitleNewPage and isSummaryNewPage to "true" so that the Title page and the Summary page will be printed on their respective new page. Does setting isTitleNewPage and isSummaryNewPage to "true" cause a blank page to show up between the 2 pages? Again, thank you and best regards, Akino
  5. Hello, I have a simple Jasper report that has a Title band and a Summary band. All other bands are set to be invisible (band height = 0). My report is printed fine; except for an unwanted blank page between the title page and the summary page. I've checked all the parameters/settings. But I have not been able to find anything that could cause the blank page to show up. Then I wrote a piece of Java code : java.util.List pages = jp.getPages(); for (Iterator<java.util.List> i=pages.iterator(); i.hasNext();) { JRPrintPage page = (JRPrintPage)i.next(); if (page.getElements().size() == 0) i.remove(); } to try to remove the blank page. This code successfully removed the blank page. But I wonder if there is any paramter/settings that I can adjust at the iReport level to remove this blank page instead of using Java code? My .jrxml file is attached. I appreciate any help you might be able to provide. Best Regards, Akino
  6. Hello, When I use iReport 1.3.3 to compile a .jrxml file, it generates 2 files : a .java file and a .jasper file. When I use Report 3.7.0 to compile the same .jrxml file, it only generates a .jasper file. Would someone please tell me if this is intended in 3.7.0 or maybe I am doing something wrong? Thank you for your help. Akino
  7. Hello, I am running iReport 1.3.3. And when I compiled my .jrxml file which contains the following code : ... <printWhenExpression> new java.lang.Boolean($P{numTRCBugs} != 0) </printWhenExpression> .......... where numTRCBugs is java.lang.Integer I got the following compile-time error : "net.sf.jasperreports.engine.JRException: java.lang.IllegalArgumentException: Cannot invoke net.sf.jasperreports.engine.design.JRDesignElement.setPrintWhenExpression - java.lang.ClassCastException@8b9227" I wonder if someone could please tell me how to fix this problem? Thank you very much. Akino
  8. Hello, Sorry, it's been a while so I can't remember what I did to work through the problem with iReport 3.0.0. I do remember that I tried a bunch of things and eventually installed version 1.3.3 of iReport. And it worked for me. One thing I would like to mention is that I installed iReport to work on existing .jrxml files that had been created long before. I don't know if this is your case or not. Good luck, Chris
  9. Hello, I have just installed JasperServer Pro 3.0, which included iReport. When I ran iReport, I saw the following error on the console : Can't find the translation for key = gui.elementpropertiessheet.sheetProperty.renderType: using default (Render type) Can't find the translation for key = gui.elementpropertiessheet.sheetProperty.renderType: using default (Render type) Showing...false false {query.language.ejbql=EJBQL, irplugin.update.url=http://ireport.sf.net/lastversionji.php, query.language.sql.enabled=true, query.language.hql.enabled=true, query.language.xPath=XPath, irplugin.encrypt.passwords.key=54fj245vn3vfdsmce4mg0jvs, irplugin.version=3.0.0, query.language.mdx.enabled=true, query.language.xPath.enabled=true, query.language.hql=Hibernate Query Language (HQL), ireport.manage.datasources.enabled=true, query.language.mdx=MDX, irplugin.server.url=http://localhost:8080/jasperserver-pro/services/repository, query.language.sql=SQL, irplugin.server.required.version=1.2.1, irplugin.update.checking.enabled=false, irplugin.encrypt.passwords=true, query.language.ejbql.enabled=true, irplugin.title=JasperServer Pro plugin {0}} Can't find the translation for key = gui.elementpropertiessheet.sheetProperty.renderType: using default (Render type) Can't find the translation for key = gui.elementpropertiessheet.sheetProperty.renderType: using default (Render type) Could someone please tell me what might be causing these errors and how I could go about fixing this problem? Thank you for your help. Chris
×
×
  • Create New...