2005 IR Help Posted August 27, 2006 Share Posted August 27, 2006 By: Adriana Mestrinelli Paranhos - jasperdri generating a blank report... 2003-02-19 05:52 Hello everyone... when i got an empty report, comes the following error:(correct me if i?m wrong) dori.jasper.engine.JRException: Page index out of range : 0 of -1 at dori.jasper.engine.export.JRGraphics2DExporter.exportReport(JRGraphic s2DExporter.java:202) at dori.jasper.engine.print.JRPrinterAWT.printPageToImage(JRPrinterAWT.j ava:288) at dori.jasper.engine.print.JRPrinterAWT.printPageToImage(JRPrinterAWT.j ava:154) at dori.jasper.engine.JasperPrintManager.printPageToImage(JasperPrintMan ager.java:485) at dori.jasper.view.JRViewer.refreshPage(JRViewer.java:869) at dori.jasper.view.JRViewer.<init>(JRViewer.java:178) at dori.jasper.view.JasperViewer.<init>(JasperViewer.java:112) at dori.jasper.view.JasperViewer.viewReport(JasperViewer.java:234) at scp.frm.frmRelatorio.imprimiRelatorio(frmRelatorio.java:1769) at scp.frm.frmRelatorio.access$2900(frmRelatorio.java:83) at scp.frm.frmRelatorio$27.actionPerformed(frmRelatorio.java:1301) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:14 50) at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra ctButton.java:1504) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel .java:378) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250 ) at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL istener.java:216) at java.awt.Component.processMouseEvent(Component.java:3715) at java.awt.Component.processEvent(Component.java:3544) at java.awt.Container.processEvent(Container.java:1164) at java.awt.Component.dispatchEventImpl(Component.java:2593) at java.awt.Container.dispatchEventImpl(Container.java:1213) at java.awt.Component.dispatchEvent(Component.java:2497) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451 ) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125) at java.awt.Container.dispatchEventImpl(Container.java:1200) at java.awt.Window.dispatchEventImpl(Window.java:926) at java.awt.Component.dispatchEvent(Component.java:2497) at java.awt.EventQueue.dispatchEvent(EventQueue.java:339) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh read.java:131) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre ad.java:98) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:85) i need to show an empty report when this error occurs... how can i mke this?? thanx By: Teodor Danciu - teodord RE: generating a blank report... 2003-02-19 06:48 Hi, Use the "whenNoDataType" attribute. Check the "Quick Reference" for details. I hope this helps. Teodor By: Adriana Mestrinelli Paranhos - jasperdri RE: generating a blank report... 2003-02-19 08:34 ok, Teodor..... but, how do i pass/use this attribute?? where do i put it?? thanx for the help... By: Teodor Danciu - teodord RE: generating a blank report... 2003-02-19 12:30 Hi, whenNoDataType is an attribute of the <jasperReport> tag. It is part of your XML report design. Since 0.4.5, such attributes can also be changed at runtime. I already mentioned the "Quick Reference". But your are probably using a GUI tool to edit your XML files... Teodor By: Druzya - druzya RE: generating a blank report... 2004-09-15 06:50 Hi sorry for the intrusion but i have a very similar problem, so i think i could ask for help here i do get a blank page even with the whenNoDataTipe value set to Type_all_section_no_Detail i get an error like: error Error evaluating expression : textField_2 Source text : new DecimalFormat("0").format($F{CODE_CLASS}) the field is shown as part of the group header and i suspected being that a part of the problem, so i changed to When_no_data_types_no_pages but i still get that error any suggstions? thanks Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now