This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

error while creating jasper report using jasper apis

 
praveen shinde
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The error is at the following line.
JasperPrintManager.printReport("build/reports/report5.jrprint", true);
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic