File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
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);
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: error while creating jasper report using jasper apis