Jump to content
Changes to the Jaspersoft community edition download ×

dori.jasper.engine.JRException: Invalid page


2005 IR Help

Recommended Posts

By: mozart - mozart_sk8

dori.jasper.engine.JRException: Invalid page

2004-09-11 03:01

when I tried to run my program I get a message

 

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

 

at dori.jasper.engine.print.JRPrinterAWT.printPages(JRPrinterAWT.java:169)

 

at dori.jasper.engine.print.JRPrinterAWT.printPages(JRPrinterAWT.java:130)

 

at dori.jasper.engine.JasperPrintManager.printPages(JasperPrintManager.java:389)

 

at dori.jasper.engine.JasperPrintManager.printReport(JasperPrintManager.java:280)

 

at ph.com.smart.controller.MyApplet.init(Unknown Source)

 

at sun.applet.AppletPanel.run(Unknown Source)

 

at java.lang.Thread.run(Unknown Source)

 

 

what's wrong with my program here's my source code

 

 

fileName = "http://127.0.0.1:8888//reports//template//SalesInvoice.jasper";

files = "http://127.0.0.1:8888//reports//template//SalesInvoice.jrprint";

URL url = new URL( fileName );

URL url2 = new URL( files );

report = JasperManager.loadReport( url.openStream() );

parameters = new HashMap();

parameters.put( "ReportTitle", "REPORTS" );

JasperFillManager.fillReport(report, parameters, getConnection());

jasperPrint = (JasperPrint)JRLoader.loadObject(url2.openStream());

JasperPrintManager.printReport(jasperPrint, true);

 

I would really appreciate if someone could help me

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

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...