This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Other Open Source Projects and the fly likes error while creating jasper report using jasper apis Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "error while creating jasper report using jasper apis" Watch "error while creating jasper report using jasper apis" New topic
Author

error while creating jasper report using jasper apis

praveen shinde
Ranch Hand

Joined: Jun 03, 2009
Posts: 63
Hello friends,
When I run a simple application for crating a jasper report with jasper apis getting following error.

net.sf.jasperreports.engine.JRException: Invalid page index range : 0 - -1 of 0

Any help is welcome.

code is given below:
praveen shinde
Ranch Hand

Joined: Jun 03, 2009
Posts: 63
The error is at the following line.
JasperPrintManager.printReport("build/reports/report5.jrprint", true);
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: error while creating jasper report using jasper apis