This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread 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 OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP 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);
 
 
subject: error while creating jasper report using jasper apis