| Author |
Message |
|
|
Post subject: iReport Error - question
Posted: 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 |
|
|
| |
|
|
|
 |
|
|
| |