Plugins (1059)


Training and Consulting (44)



EPIC Poll

What is your favourite developer portal?

[ Results | Polls ]

Votes: 541
Comments: 0

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
me@bkk
Post subject: iReport Error - question  PostPosted: Dec 28, 2007 - 11:02 AM



Joined: Dec 28, 2007
Posts: 1

While trying to print an invoice, I keep getting the following error:
net.sf.jasperreports.engine.JRException: Invalid page index range : 0 - -1 of 0
which point to the following line:
Code:

JasperPrintManager.printReport(jasperPrint, true);



The lines ordering the printout are:

Code:
   ReportPrint print = new ReportPrint();
        try {
            print.printReport("invoiceID", invoiceID, file);
        } catch (JRException ex) {
            ex.printStackTrace();
        }



When I run the document on iReport using same parameters the document comes out fine.....
What am I missing?

Thanks
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits