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

jojoala

Members
  • Posts

    3
  • Joined

  • Last visited

jojoala's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

0

Reputation

  1. Hi, Thanks for the reply. 2 questions: 1. I can and want to compile the templates, but I couldn't find anywhere the command to replace: Code: JasperDesign jasperDesign = JRXmlLoader.load(printLocation + file); JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign); and use the .jasper file instead. 2. The location question again... You suggest using relational location - in relation to which location though? The .jar file is located in subdir "dist", and within the .jar file there are few other dirs - that's where I am lost... Thanks
  2. I designed some reports with iReport / Jasper report. It all works fine while running it under the netbeans IDE, but once I generate a dist and start the application from the .jar file, the reports don't print. I guess it can't find the jrxml and the jasper files. I tried copying the files to various locarions - on the root, inside the .jar file in many different locations (in the root of the .jar, in the .class dir, in a report sub dir with in the class dir, in a sub dir inside the lib dir,. loose with in the lib dir....) and nothing works. I tried marking the sub-report dir as ".\reports " and also as ". " - nothing works... Where and how should I include those files in the dist package?? Thanks
  3. Hi, While trying to print an invoice, I keep getting the following error: net.sf.jasperreports.engine.JRException: Invalid page index range : 0 - -1 of 0 which point to the following line: Code:JasperPrintManager.printReport(jasperPrint, true); The lines ordering the printout are: Code:[code] ReportPrint print = new ReportPrint(); try { print.printReport("invoiceID", invoiceID, file); } catch (JRException ex) { ex.printStackTrace(); } When I run the document on iReport using same parameters the document comes out fine..... What am I missing?? Thanks
×
×
  • Create New...