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

print problem (invalid page index range)


2005 IR Help

Recommended Posts

By: Serge - grappa1

print problem (invalid page index range)

2004-08-23 00:37

Hello,

 

A beginner quesion on Jasper:

I'm trying to print out a sample report (provided with Jasper), but receive

dori.jasper.engine.JRException: Invalid page index range : 0 - -1 of 0

 

My code is::

JasperDesign design = JasperManager.loadXmlDesign("c:\FontsReport.jrxml");

JasperReport rep = JasperManager.compileReport(design);

JasperPrint print = JasperManager.fillReport(rep, null, (Connection)null);

JasperManager.printReport(print, true);

 

 

 

Thanks in advance, Serge

Link to comment
Share on other sites

  • 7 years later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...