Jump to content
Changes to the Jaspersoft community edition download ×

generating a blank report...

2005 IR Help

Recommended Posts

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


at dori.jasper.engine.print.JRPrinterAWT.printPageToImage(JRPrinterAWT.j


at dori.jasper.engine.print.JRPrinterAWT.printPageToImage(JRPrinterAWT.j


at dori.jasper.engine.JasperPrintManager.printPageToImage(JasperPrintMan


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


at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra


at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel


at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250


at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL


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


at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre


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







By: Teodor Danciu - teodord

RE: generating a blank report...

2003-02-19 06:48




Use the "whenNoDataType" attribute.

Check the "Quick Reference" for details.


I hope this helps.







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




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








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?



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