2005 IR Help
-
Posts
2,830 -
Joined
-
Last visited
Content Type
Profiles
Forum
Events
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Security Advisories
Downloads
Posts posted by 2005 IR Help
-
-
By: cbaeza - cbaeza
JRXMLDatasource: Navigated trough self docume
2005-11-28 06:37
Hi,
I wish to do a example, but without sub report. (only 1 .jrxml file)
My problem is:
Navigates in the <reglam_clau> nodes in the self document with XPath expression.
Example:
file: “contrato.xmlâ€
<contrato>
:
:
<reglamento>
<clausur>
<reglam_clau> information 1</reglam_clau>
<reglam_clau> information 2 </reglam_clau>
<reglam_clau> information 3 </reglam_clau>
<reglam_clau> information 4 </reglam_clau>
:
:
</clausur>
</reglamento>
</contrato>
I have made the Field description as:
Field: reglam_clau
Field Class Type: java.lang.string
Field Description: reglamento/clausur/reglam_clau/self::reglam_clau
…but, it does not work ! :(
You have a idea ?
Thank an advanced !!
Carlos
PS:
XML Datasource: ../contrato.xml
Select Expression: /contrato
By: Wal Millard - walmillard
RE: JRXMLDatasource: Navigated trough self do
2005-11-28 19:17
Carlos,
I like to put as much info into the select expression and only a little into the Field descriptions.
Try this, set the select Expresion to
/contrato/reglamento/clausur
Set the description to
reglam_clau
This should give you the data from the tag.
if you set the select expression to:
/contrato/reglamento/clausur[reglam_clau != '']
then you should get all the entrys that are not null.
If you are more interested in the xpath self:: control, then have a look at this post.
http://sourceforge.net/forum/message.php?msg_id=3154935
Luck
walmillard
By: cbaeza - cbaeza
RE: JRXMLDatasource: Navigated trough self do
2005-11-29 04:35
Hi Walmillard,
Thanks for you help, but lamentably it does not works. I have probed many alternatives as:
1: /contrato/reglamento/clausur -> result: nothing
2: /contrato/reglamento/clausur/* -> result: only first element
3: /contrato/reglamento/clausur/reglam_clau -> result: only first element
4: /contrato/reglamento/clausur/self::reglam_clau -> result: null
5: /contrato/reglamento/clausur/reglam_clau/self::reglam_clau -> result: only first element
an so on,...
perhaps the problem is each field <reglam_clau>, it's very extensive.
Example (real document):
<reglam_clau>A) QUE EL APORTE NETO PASARÃ A SER PARTE DEL ACTIVO DEL FONDO, EL CUAL SERÃ ADMINISTRADO LIBREMENTE POR LA SOCIEDAD ADMINISTRADORA E INVERTIDO CONFORME AL REGLAMENTO INTERNO DEL FONDO Y A LAS DEM�S DISPOSICIONES LEGALES Y REGLAMENTARIAS APLICABLES A LOS FONDOS MUTUOS Y SUS FUTURAS MODIFICACIONES. LA SOCIEDAD DEBER� INSCRIBIR MI PARTICIPACI�N EN EL REGISTRO DE PART�CIPES QUE PARA EL EFECTO LLEVA, DEJANDO CONSTANCIA DE LA CANTIDAD DE CUOTAS DE QUE SOY TITULAR.</reglam_clau>
<reglam_clau>B) QUE POR LA NATURALEZA DE LOS FONDOS MUTUOS, ÉSTOS NO PUEDEN GARANTIZAR UNA DETERMINADA RENTABILIDAD SOBRE MI INVERSIÓN, RENTABILIDAD QUE ES ESENCIALMENTE VARIABLE E INDETERMINADA.</reglam_clau>
<reglam_clau>C) QUE EL FONDO MUTUO BANCHILE ACCIONES, POR TENER TÃTULOS QUE SE VALORIZAN DE ACUERDO A LOS PRECIOS DE MERCADO, EL VALOR DE DICHOS TÃTULOS Y, EVENTUALMENTE, EL VALOR DE LAS CUOTAS DEL FONDO MUTUO INDICADO, PUEDE AUMENTAR O DISMINUIR COMO PRODUCTO DE LAS FLUCTUACIONES PROPIAS DEL MERCADO.</reglam_clau>
So, if you can help me.....Thanks in advanced.
Carlos
:)
-
-
By: Gunnar Groetschel - groetschel
dynamically rectangle width
2005-11-29 03:31
Hi Forum
I have to dynamically set rectangle width, so that it looks like a chart trick in my detail band. How can i do this?
Thanks and best regards
Gunnar
-
By: david915 - david915
can someone tell me how to use chart tools?
2005-11-29 01:40
can someone tell me how to use the ireport chart tools?
i can't find the example in the jasperreport download files .
i can run it well when design jfreechart report in ireport.
but when i move to my j2ee app,and browse it from ie,the jfreechart img src is nullimg_0_0_x
<img src="nullimg_0_0_x"/>
can i design the jfreechart in ireport?
-
By: gertoh - gertoh
Language Support
2005-11-28 22:24
hi,
currently i face the following problem.
i m using ireport to do a pdf document, but even i type a chinese char and save it, when it display at the pdf it become "中国"
pls help, thanks so much.
-
By: Jean - jeanui
Separate page for both group header/footer
2005-11-21 12:00
Is it possible to have a new page for both the group header and the group footer?
For example:
<new page>
pageHeader
columnHeader
groupHeader
detail
<new page>
pageHeader
groupFooter
What I am trying to accomplish is to put the group totals (sums, counts, etc.) on a separate page from the details. There will be multiple occurrences of the group, so a summary will not do the trick.
Thanks in advance
By: Jean - jeanui
RE: Separate page for both group header/footer
2005-11-28 14:30
Does anyone know if this is possible?
-
By: Jean - jeanui
Separate page for both group header/footer
2005-11-21 12:00
Is it possible to have a new page for both the group header and the group footer?
For example:
<new page>
pageHeader
columnHeader
groupHeader
detail
<new page>
pageHeader
groupFooter
What I am trying to accomplish is to put the group totals (sums, counts, etc.) on a separate page from the details. There will be multiple occurrences of the group, so a summary will not do the trick.
Thanks in advance
By: Jean - jeanui
RE: Separate page for both group header/footer
2005-11-28 14:30
Does anyone know if this is possible?
-
By: shilan - shilan
how to path to iReport
2005-11-27 23:29
hi all :)
i had a problem for a long time and i could not solve it.
i work on a project that is swing base, and I use iReport as reporting tool.
the problem is when i try to call the reprt from a a frame by clicking a button:
it works well when I run it in idea environment, but I've made jar file from the
whole project.when I try to run the jar file and
then calling the rport it encounters following error:
how should i address the jasper file?! or where should i put the .jasper files?
java.io.FileNotFoundException: D:projectsnazirsrciReportrptFact.jasper (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:103)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at list.ListUI.btnAll_actionPerformed(ListUI.java:425)
at list.ListUI_btnAll_actionAdapter.actionPerformed(ListUI.java:546)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:227)
at java.awt.Component.processMouseEvent(Component.java:5134)
at java.awt.Component.processEvent(Component.java:4931)
at java.awt.Container.processEvent(Container.java:1566)
at java.awt.Component.dispatchEventImpl(Component.java:3639)
at java.awt.Container.dispatchEventImpl(Container.java:1623)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
at java.awt.Container.dispatchEventImpl(Container.java:1609)
at java.awt.Window.dispatchEventImpl(Window.java:1590)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:140)
at java.awt.Dialog.show(Dialog.java:538)
at factor.FactorUI.btnList_actionPerformed(FactorUI.java:262)
at factor.FactorUI_btnList_actionAdapter.actionPerformed(FactorUI.java:354)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:227)
at java.awt.Component.processMouseEvent(Component.java:5134)
at java.awt.Component.processEvent(Component.java:4931)
at java.awt.Container.processEvent(Container.java:1566)
at java.awt.Component.dispatchEventImpl(Component.java:3639)
at java.awt.Container.dispatchEventImpl(Container.java:1623)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
at java.awt.Container.dispatchEventImpl(Container.java:1609)
at java.awt.Window.dispatchEventImpl(Window.java:1590)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:140)
at java.awt.Dialog.show(Dialog.java:538)
at NazirMainGUI.jMenuItem10_actionPerformed(NazirMainGUI.java:329)
at NazirMainGUI_jMenuItem10_actionAdapter.actionPerformed(NazirMainGUI.java:502)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
at java.awt.Component.processMouseEvent(Component.java:5134)
at java.awt.Component.processEvent(Component.java:4931)
at java.awt.Container.processEvent(Container.java:1566)
at java.awt.Component.dispatchEventImpl(Component.java:3639)
at java.awt.Container.dispatchEventImpl(Container.java:1623)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
at java.awt.Container.dispatchEventImpl(Container.java:1609)
at java.awt.Window.dispatchEventImpl(Window.java:1590)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
I have also tried not to use complete address for the .jasper file, but still it couldn't find the file
thanks in advance
By: shilan - shilan
RE: how to path to iReport
2005-11-28 12:42
hi again :>
now that i got rid of the previous problem, i get a new error message, like this:
Exception occurred during event dispatching:
java.lang.ExceptionInInitializerError
at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:113)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:57)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:247)
at net.sf.jasperreports.engine.JasperManager.fillReport(JasperManager.java:692)
at list.ListUI.btnAll_actionPerformed(ListUI.java:434)
can you please help to come over this :(
-
By: Bruce Chariot - bchariot
problems with groovy for ireport0.5.2
2005-11-28 08:26
Using "groovy" in a report, I am getting the following error when I compile:
java.lang.VerifyError: class net.sf.jasperreports.compilers.JRGroovyCompiler overrides final method >.>
Any thoughts?
-
By: christian75 - christian75
JavaBean Datasource Classpath Problem
2005-11-28 08:13
Hello,
i defined a javabean datasource. After setting the classpath in the ireport application to the required BeanFactory, the test connection succeed.
But when i "run report using a connection" (bean source is selected) all fields have null values in the generated output.
This does not happen, when i set the classpath before starting ireport.
Is this a bug or do i have to configure something else? (iReport 0.5.2)
best regards,
christian
-
By: cfi - delphinecfi
Passing parameters to the sub report
2005-11-27 10:37
How to pass parameters of the master report to the sub report which is a chart report?
By: hillary - wikkitt
RE: Passing parameters to the sub report
2005-11-28 07:45
First, create the parameter in the subreport.
Double click the subreport element in the master report and go to the Subreport(other) tab and Subreport parameters tab. Click Add and enter the subreport parameter name that you created and then the value from the master you want to send.
Make sure your data types are the same!
That should do it.
By: cfi - delphinecfi
RE: Passing parameters to the sub report
2005-11-28 07:51
Thanks wikkitt. It worked.
-Delphine.V
-
By: jane_lim - jane_lim
Crosstab tag
2005-11-24 19:38
Hi,
i have look into the sample of crosstab in jasper homepage. From the sample there are some crosstab tag like
<crosstabParameter/>
<crosstabDataset/>
<crosstabRowHeader/>
and so on ...
however, my prob is how i can create those tag using iReport?? or i need to manually edit the xml myself??
thanks for your help
jane
By: jthevenoux - jthevenoux
RE: Crosstab tag
2005-11-28 02:52
It's not implemented in iReport, maybe in 0.5.3 !
Today, you must edit manually XML.
JP
-
By: shilan - shilan
path to iReport
2005-11-27 23:27
hi all :)
i had a problem for a long time and i could not solve it.
i work on a project that is swing base, and I use iReport as reporting tool.
the problem is when i try to call the reprt from a a frame by clicking a button:
it works well when I run it in idea environment, but I've made jar file from the
whole project.when I try to run the jar file and
then calling the rport it encounters following error:
how should i address the jasper file?! or where should i put the .jasper files?
java.io.FileNotFoundException: D:projectsnazirsrciReportrptFact.jasper (The system cannot find the file specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:103)
at java.io.FileInputStream.<init>(FileInputStream.java:66)
at list.ListUI.btnAll_actionPerformed(ListUI.java:425)
at list.ListUI_btnAll_actionAdapter.actionPerformed(ListUI.java:546)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:227)
at java.awt.Component.processMouseEvent(Component.java:5134)
at java.awt.Component.processEvent(Component.java:4931)
at java.awt.Container.processEvent(Container.java:1566)
at java.awt.Component.dispatchEventImpl(Component.java:3639)
at java.awt.Container.dispatchEventImpl(Container.java:1623)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
at java.awt.Container.dispatchEventImpl(Container.java:1609)
at java.awt.Window.dispatchEventImpl(Window.java:1590)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:140)
at java.awt.Dialog.show(Dialog.java:538)
at factor.FactorUI.btnList_actionPerformed(FactorUI.java:262)
at factor.FactorUI_btnList_actionAdapter.actionPerformed(FactorUI.java:354)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:227)
at java.awt.Component.processMouseEvent(Component.java:5134)
at java.awt.Component.processEvent(Component.java:4931)
at java.awt.Container.processEvent(Container.java:1566)
at java.awt.Component.dispatchEventImpl(Component.java:3639)
at java.awt.Container.dispatchEventImpl(Container.java:1623)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
at java.awt.Container.dispatchEventImpl(Container.java:1609)
at java.awt.Window.dispatchEventImpl(Window.java:1590)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:140)
at java.awt.Dialog.show(Dialog.java:538)
at NazirMainGUI.jMenuItem10_actionPerformed(NazirMainGUI.java:329)
at NazirMainGUI_jMenuItem10_actionAdapter.actionPerformed(NazirMainGUI.java:502)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1764)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1817)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:419)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:257)
at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
at java.awt.Component.processMouseEvent(Component.java:5134)
at java.awt.Component.processEvent(Component.java:4931)
at java.awt.Container.processEvent(Container.java:1566)
at java.awt.Component.dispatchEventImpl(Component.java:3639)
at java.awt.Container.dispatchEventImpl(Container.java:1623)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3165)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
at java.awt.Container.dispatchEventImpl(Container.java:1609)
at java.awt.Window.dispatchEventImpl(Window.java:1590)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
I have also tried not to use complete address for the .jasper file, but still it couldn't find the file
thanks in advance
-
By: query - query_dvl
Exception while accessing reports
2005-11-27 20:23
Hi,
I have used jasperreports 0.5.2 and ireports 0.3.0 for designing the reports. Java version Iam using is 1.4.2
Now problem is that sometimes when i am viewing report by pressing corresponding link or button Iam getting the below written exception and whole application is aborted.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x6D3CF788
Function=JVM_FindSignal+0x186F8
Library=C:j2sdk1.4.1jrebinclientjvm.dll
Current Java thread:
at java.lang.Throwable.fillInStackTrace(Native Method)
- locked <02AD0F18> (a java.lang.NullPointerException)
at java.lang.Throwable.<init>(Throwable.java:180)
at java.lang.Exception.<init>(Exception.java:29)
at java.lang.RuntimeException.<init>(RuntimeException.java:32)
at java.lang.NullPointerException.<init>(NullPointerException.java:36)
at dori.jasper.engine.fill.JRCalculator.evaluate(JRCalculator.java:715)
****************
Another exception has been detected while we were handling last error.
Dumping information about last error:
ERROR REPORT FILE = (N/A)
PC = 0x6D3CF788
SIGNAL = -1073741819
FUNCTION NAME = JVM_FindSignal
OFFSET = 0x186F8
LIBRARY NAME = C:j2sdk1.4.1jrebinclientjvm.dll
Please check ERROR REPORT FILE for further information, if there is any.
Good bye.
Press any key to continue . . .
I could not trace out where the problem is.
Hope some one can help me out in this.
Regards,
Query.
-
By: tolga gucuk - e111982
subreport -again-
2005-11-10 04:52
hi
i have two reports. one main and the other subreport.I use informix database and ireport 0.5.2. Each one is working indivudually. however i can not not get values of subreport in main report. i put subreport element. and write
"C:\iReport\iReport-0.5.2\subrep.jasper" in expression. but no result. what should i do?
By: harvestmoon1200 - harvestmoon1200
RE: subreport -again-
2005-11-10 23:53
u mean the report display static text in master report but did not display the sub report, not even the static text, rite?
if answer is positif, go to subreport properties,
in "subreport" tab, look for "Connection/Datasource Expression". change it to "use connection expression"
hope this is the reason... cos last time i oso face this problem.
By: tolga gucuk - e111982
RE: subreport -again-
2005-11-11 00:36
i can show static text in master and subreport by using no connection. however i need to show query results which are in subreport. i can show in subreport but not in main. i change connection/datasource but again no work. what shold i write under use datasource/connectin. i am using informiz database and the query is working in subreport.
By: harvestmoon1200 - harvestmoon1200
RE: subreport -again-
2005-11-13 17:31
i not very sure now, cos i use mysql. but u can try use "$P{REPORT_CONNECTION}" for the connection. i get that automaticaly when i change ...
By: tolga gucuk - e111982
RE: subreport -again-
2005-11-14 00:10
i only see a blank page. cant see the subresult query result. but in subreport i see. it doesnt change when i use $P{CONNECTION_..}
By: Dlfiles - dlfiles
RE: subreport -again-
2005-11-25 14:08
Well, I had this same error that most of people had and when I enabled the $P{CONNECTION} I would get an inifinit loop. I discover that my problem was that in the subreport(other) tab where we specify a link I was refereing to the master report and not the subreport hence making an infinit loop. :-/
-
By: geuslenn - geuslenn
Using Combobox To Select Parameter Value
2005-08-31 05:21
Hi everybody,
I am designing reports with Ireport. I want to prompt some parameters that their values in combobox to users . Is there any way to use combobox. Thanks.
By: Dlfiles - dlfiles
RE: Using Combobox To Select Parameter Value
2005-11-24 14:04
Hello,
I would like to know also if it is possible to create a combobox as a parameter so that the user can choose from a selected list of options when running a report.
I am starting to learn about JasperReports and iReport so currently I don't know much.
Thanks
By: Wal Millard - walmillard
RE: Using Combobox To Select Parameter Value
2005-11-24 19:21
Guys,
IReport is a design tool for pdf/html etc reports produced by JasperReports. it is not an interface for entering data. If you want to perform some sort of selection process then you will need a web/apllication interface. There are many options for this type of interface, common in java being servlets. But since Jasper and ireport use java, so this interface must be written in java aswell.
If your project is not using the internet, then you must write a stand alone application in Java using swing controls, or some other "visual" java tools. iReport itself is a stand alone written in java.
luck
walmillard
-
By: Edward V. Berard - edberard
Error Filling Print ... ?
2005-05-31 12:55
I created an iReport report that compiled with no problems. However, when I attempt to run it, I get beaucoup error messages, all under the general title of "Error Filling Print...", and an admonition of "Print not filled. Try to use an EmptyDataSource."
It would appear that the program is having lots of problems finding classes.
Can anybody shed some light on this problem?
-- Ed
By: Chris Cureau - ccureau
RE: Error Filling Print ... ?
2005-05-31 13:04
I had a similar problem, may or may not be related. I had emailed Giulio Toffoli about the problem, but he wasn't immediately able to offer suggestions...perhaps someone could shed some light onto this? It looks as if the stack trace is saying that it's trying to open the connection as an FTP connection, which is just wrong. I have verified that the report it is trying to load actually exists...
Here's the stack trace:
---
Filling report...
Error filling print...
java.net.UnknownHostException: C
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.NetworkClient.openServer(Unknown Source)
at sun.net.ftp.FtpClient.openServer(Unknown Source)
at sun.net.ftp.FtpClient(Unknown Source)
at sun.net.www.protocol.ftp.FtpUrlConnection.connect(Unknown Source)
at sun.net.www.protocol.ftp.FtpUrlConnection.getInputStream(Unknown Source)
at java.net.URL.openStream(Unknown Source)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:136)
at net.sf.japserreports.engine.util.JRLoader.loadObjectFromLocation (JRLoader.java:259)
at net.sf.jasperreports.engine.fill.JRFillSubreport.evaluate(JRFillSubreport.java:294)
at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:339)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:1254)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillGroupFooter(JRVerticalFiller.java:640)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillGroupFooters(JRVerticalFiller.java:614)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportContent(JRVerticalFiller.java:221)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:122)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:622)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:489)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:76)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:247)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:163)
at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:550)
at java.lang.Thread.run(Unknown Source)
NESTED BY :
java.net.UnknownHostException: C
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.net.NetworkClient.doConnect(Unknown Source)
at sun.net.NetworkClient.openServer(Unknown Source)
at sun.net.ftp.FtpClient.openServer(Unknown Source)
at sun.net.ftp.FtpClient.<init>(Unknown Source)
at sun.net.www.protocol.ftp.FtpURLConnection.connect(Unknown Source)
at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream (Unknown Source)
at java.net.URL.openStream(Unknown Source)
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:136)
at net.sf.jasperreports.engine.util.JRLoader.loadObjectFromLocation(JRLoader.java:259)
at net.sf.jasperreports.engine.fill.JRFillSubreport.evaulate(JRFillSubreport.javaL294)
at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:339)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:1254)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillGroupFooter(JRVerticalFiller.java:640)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillGroupFooters(JRVerticalFiller.java:614)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportContent(JRVerticalFiller.java:221)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:122)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:622)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:489)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:76)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:247)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:163)
at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:550)
at java.lang.Thread.run(Unknown Source)
NESTED BY :
net.sf.jasperreports.engine.JRException: Error loading object from URL : file://C:/iReport-0.5.0/oereports/patient_address.jasper
at net.sf.jasperreports.engine.util.JRLoader.loadObject(JRLoader.java:142)
at net.sf.jasperreports.engine.util.JRLoader.loadObjectFromLocation(JRLoader.java:259)
at net.sf.jasperreports.engine.fill.JRFillSubreport.evaulate(JRFillSubreport.javaL294)
at net.sf.jasperreports.engine.fill.JRFillBand.evaluate(JRFillBand.java:339)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:1254)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillGroupFooter(JRVerticalFiller.java:640)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillGroupFooters(JRVerticalFiller.java:614)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportContent(JRVerticalFiller.java:221)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:122)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:622)
at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:489)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:76)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:247)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:163)
at it.businesslogic.ireport.IReportCompiler.run(IReportCompiler.java:550)
at java.lang.Thread.run(Unknown Source)
By: Edward V. Berard - edberard
RE: Error Filling Print ... ?
2005-05-31 13:33
Some more information...
I ran the same query, to the same database, over the same connection, using the ClassicC template.
I got a clean compile, and I encountered no problems when I generated a report.
-- Ed
By: Chris Cureau - ccureau
RE: Error Filling Print ... ?
2005-06-02 07:01
Giulio,
All of my reports are in the same directory, and my subreports are named simply as "my_subreport_file_name.jasper" in the subreport expression field. This worked fine when I ran the reports after they were compiled with 0.4.1, but continually fail after the reports were compiled with 0.5.0.
I did a little more experimentation last night with the subreport and found something interesting -- the "my_subreport_file_name.jasper" subreport expression seems to be expanding to
file://c:/ireport-0.5.0/my_subreport_file_name.jasper
which is incorrect. There needs to be three slashes before the c: to access the file correctly. When I hardcoded the path above with three slashes before the c:, it worked like a dream.
Thanks,
Chris
By: Chris Cureau - ccureau
RE: Error Filling Print ... ?
2005-06-02 16:28
One other interesting thing...
I tried compiling the main report with the subreport expression as "my_subreport_file_name.jasper" in 0.5.0 running in Linux along with the subreport -- the report ran and exported just as it did in 0.4.1. Something in 0.5.0 is causing this in Windows, is my guess.
By: J. Brett Howell - jbretthowell
RE: Error Filling Print ... ?
2005-06-03 09:38
I'm in the same boat as ccureau - report with subreport, jasper files for both in the same directory (along with xml) .
In the 0.4.1 version of iReport (and in my web application) it works, but in 0.5.0 a "java.net.UnknownHostException: C" is thrown (further down in the stack trace
"net.sf.jasperreports.engine.JRException: Error loading object from URL : file://C:/reportpath/subreport.jasper"
This is different from when the subreport cannot be found (or doesn't exist - "Could not load object from location...").
I tried to do a little debugging last night and although did not accomplish much, I did notice that the way iReport is handling the report filenames is different: In 0.4.1 the value stored in the fileName variable in the IReportCompiler.run() method was formatted like "c:reportpathreportname.jasper" whereas in 0.5.0 it is formatted like "/reportpath/reportname.jasper" - drive letter is stripped off and different separators.
I wonder if the difference in the formatting of the report name is causing problems later on for the class loader to find the jasper file?
By: J. Brett Howell - jbretthowell
RE: Error Filling Print ... ?
2005-06-07 08:42
ReportClassLoader.java (around line 206) creates a new URL object passing in a string of "file://" + path + filename, and it appears that in Windows the path is resolving to "/c:/pathtoreport.../" which means the concatenated string equals "file:///c:/pathtoreport.../". The URL host attribute then gets set to "c" instead of "".
By removing the second slash from "file://" (e.g., making it "file:/" instead) seems to work properly in Windows.
Anyone care to test this in Linux and post the results? Chris?
By: Chris Cureau - ccureau
RE: Error Filling Print ... ?
2005-06-08 05:36
I've hardcoded the Subreport Expression field in Linux to
"file:/home/chrisc/oereports/subreport.jasper"
and tested -- both the compile and the export works as expected. I think you've found the solution, Brett. :-)
By: J. Brett Howell - jbretthowell
RE: Error Filling Print ... ?
2005-06-08 07:07
Thanks Chris.
After seeing your response I passed a message along to Giulio who immediately responded that he would look at it as soon as he could and put a fix into CVS.
So any other Windows users with this problem - be patient, a fix is on the way (or if you can't wait then download the source and make the change yourself in the interim).
BTW, 0.5.0 is very nice relative to 0.4.1. The latter was good, but the former is much better.
By: Giulio Toffoli - gt78
RE: Error Filling Print ... ?
2005-06-08 13:56
I committed in CVS the solution proposed by Chris and Brett.
If you can, try it.
Thanks
Giulio
By: Giulio Toffoli - gt78
RE: Error Filling Print ... ?
2005-06-01 16:04
This kind of probleam (strange FTP/HTTP connections) appears specifing a wrong path to find a resource.
If you use an expression on type "String" to locate a resource (i.e. a subreport jasper file or an image) use the syntax:
c:\my\file.jasper
or, if your resource is in the classpath:
/path/to/my/resource.jasper
This is because if you have all reports in the same directory, you can simply write as subreport expression:
"my_subreport_file_name.jasper"
Giulio
By: gilbertoca - gilbertoca
RE: Error Filling Print ... ?
2005-11-24 06:15
I have the same problem!
ireport version: 0.5.2
the imagem expresion:
"images\novo-4.gif"
Windows XP works, but in linux I get this error:
Error filling print...
net.sf.jasperreports.engine.JRException: Image not found : imagesnovo-4.gif at net.sf.jasperreports.engine.util.JRImageLoader.loadImageDataFromLocation(JRImageLoader.java:193)
If I change de expression to:
"images//novo-4.gif"
on windows Xp works and linux give me another error:
Error filling print...
java.net.UnknownHostException: home at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153) at java.net.Socket.connect(Socket.java:452) at java.net.Socket.connect(Socket.java:402) at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
.
.
.
NESTED BY : net.sf.jasperreports.engine.JRException: Error loading byte data : file://home/gilberto/dev/eclipse-config/workspace/scc/sql/report/images/novo-4.gif at net.sf.jasperreports.engine.util.JRLoader.loadBytes(JRLoader.java:365)
Can anyone help?
Gilberto
-
By: ggly - ggly
how can i create a crosstab in ireport
2005-11-24 01:44
i want to make a crosstab in ireport.but don't know how to start.can anybody tell me or provide me some document.thanks
-
By: cbaeza - cbaeza
JRXmlDataSource - Addressbook Example files
2005-11-23 12:51
Hi,
I wish implemented the Addressbook example. I have an example but don´t can navigate in the "<hobbies>..<hobby>" nodes for display.
Also, my problem is: Associated correctly each nodes <hobby> to respective users id and display all nodes.
- How can I to make ?
- Somebody already has an implemented this example?
Help me please ;-)
Thank in advanced,
Carlos
carlos.baeza@pad.cl
(Please, contact me for send the example files)
By: Wal Millard - walmillard
RE: JRXmlDataSource - Addressbook Example fil
2005-11-23 14:24
cbaeza, this is a bad example. The Example that ships with the zip/rar for jasper reports is much better, and only takes a couple of minutes to run thru. checkout my post here...
http://sourceforge.net/forum/message.php?msg_id=2838171%C2%A0%3Cbr
Now if you still want to do this address book, check out my post here...
http://sourceforge.net/forum/message.php?msg_id=2841492
You also might want to read up on XPath...
http://www.w3schools.com/xpath/xpath_syntax.asp
ok best of luck
walmillard
By: Wal Millard - walmillard
RE: JRXmlDataSource - Addressbook Example fil
2005-11-23 14:30
cbaeza,
The Hobby Node is another tick of this very tricky example, have a look at this post. if you are still have trouble, post and i will reply
http://sourceforge.net/forum/message.php?msg_id=3154935
luck walmillard
-
By: cbaeza - cbaeza
JRXmlDataSource - Addressbook Example files
2005-11-23 12:51
Hi,
I wish implemented the Addressbook example. I have an example but don´t can navigate in the "<hobbies>..<hobby>" nodes for display.
Also, my problem is: Associated correctly each nodes <hobby> to respective users id and display all nodes.
- How can I to make ?
- Somebody already has an implemented this example?
Help me please ;-)
Thank in advanced,
Carlos
carlos.baeza@pad.cl
(Please, contact me for send the example files)
By: Wal Millard - walmillard
RE: JRXmlDataSource - Addressbook Example fil
2005-11-23 14:24
cbaeza, this is a bad example. The Example that ships with the zip/rar for jasper reports is much better, and only takes a couple of minutes to run thru. checkout my post here...
http://sourceforge.net/forum/message.php?msg_id=2838171%C2%A0%3Cbr
Now if you still want to do this address book, check out my post here...
http://sourceforge.net/forum/message.php?msg_id=2841492
You also might want to read up on XPath...
http://www.w3schools.com/xpath/xpath_syntax.asp
ok best of luck
walmillard
By: Wal Millard - walmillard
RE: JRXmlDataSource - Addressbook Example fil
2005-11-23 14:30
cbaeza,
The Hobby Node is another tick of this very tricky example, have a look at this post. if you are still have trouble, post and i will reply
http://sourceforge.net/forum/message.php?msg_id=3154935
luck walmillard
-
By: akmalkhan - akmalkhan
How to implement Jasper with Tomcat ?
2005-11-22 19:36
Hi,
I am new to Jasper Report. I want to include Jasper report with my Web Application which is running in Tomcat. Can you pls suggest me the setting require to implement jasper with Tomcat. Pls also let me the jars which required and classpath setting etc. Awaiting for your reply.
With regards,
Akmal.
By: Thomas Ludwig Kast - tomkast
RE: How to implement Jasper with Tomcat ?
2005-11-23 11:13
have a look at http://www.ussrp.com. it has web controllers (spring) and the persistence layer for reports as well as report data sources...
tom
-
By: Thomas Ludwig Kast - tomkast
barcode - ucc128
2005-11-23 11:11
hiho,
"0123456789012345678" should be a valid expression for a ucc128 barcode. i get an illigal char exception. without the quotes i get an invalid data length exception.
what is a valid value?
thanks,
tom
-
By: trebreh - trebreh
iReport subreport ordering
2005-11-23 07:02
hi,
i have 4 subreports in 1 report:
S1 (returns 15 rows: S1 01 - S1 15)
S2 (rows: S2 01 - S2 15)
S3 (rows: S3 01 - S3 15)
S4 (rows: S4 01 - S4 10)
report with subreports return this:
Page1:
S1 01
..
S1 10
S3 01
..
S3 05
S4 01
..
S4 05
Page2:
S2 01
..
S2 15
S4 06
..
S4 10
of course - i need order S1, S2, S3, S4... do you know someone, how i could to do this?
-
By: ggly - ggly
.jasper to .xls in JBulider2005
2005-11-22 01:51
I use jbuilder2005+iReport-0.5.2+jasperreports-1.1.0.
I have got the .jasper file by ireport,and want to use it to create .pdf and .xls in JBulider2005.
In my .jasper, there is some field that show data from database(db2)
To creat .pdf is quite easy, but i don't know how to put the ResultSet which i got from database into the excel file. (I have checked that in ireport, it worked well)
Java.lang.Object - what does and how I use it
in Products
Posted
By: cbaeza - cbaeza
Java.lang.Object - what does and how I use it
2005-11-29 04:52
Hi Forum Friends!
I wish to know what does and how I use Java.lang.Object class type in iRepoert 0.5.2.
Have you a god example ?
Thanks,
Carlos