Screenshot instructions:
Windows
Mac
Red Hat Linux
Ubuntu
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
You can subscribe to this list here.
2002 |
Jan
|
Feb
(1) |
Mar
(4) |
Apr
(17) |
May
(18) |
Jun
(5) |
Jul
(12) |
Aug
(22) |
Sep
(3) |
Oct
(36) |
Nov
(25) |
Dec
(37) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
(69) |
Feb
(27) |
Mar
(22) |
Apr
(35) |
May
(82) |
Jun
(54) |
Jul
(63) |
Aug
(69) |
Sep
(30) |
Oct
(47) |
Nov
(36) |
Dec
(41) |
2004 |
Jan
(92) |
Feb
(94) |
Mar
(77) |
Apr
(72) |
May
(49) |
Jun
(47) |
Jul
(35) |
Aug
(24) |
Sep
(40) |
Oct
(73) |
Nov
(100) |
Dec
(59) |
2005 |
Jan
(38) |
Feb
(43) |
Mar
(174) |
Apr
(69) |
May
(44) |
Jun
(32) |
Jul
(24) |
Aug
(102) |
Sep
(53) |
Oct
(66) |
Nov
(67) |
Dec
(51) |
2006 |
Jan
(80) |
Feb
(43) |
Mar
(42) |
Apr
(103) |
May
(39) |
Jun
(92) |
Jul
(44) |
Aug
(35) |
Sep
(53) |
Oct
(28) |
Nov
(12) |
Dec
(9) |
2007 |
Jan
(10) |
Feb
(16) |
Mar
(9) |
Apr
(13) |
May
(11) |
Jun
(7) |
Jul
(3) |
Aug
(9) |
Sep
(6) |
Oct
(11) |
Nov
(20) |
Dec
(11) |
2008 |
Jan
(15) |
Feb
(8) |
Mar
(10) |
Apr
(6) |
May
(4) |
Jun
(10) |
Jul
(9) |
Aug
(16) |
Sep
(9) |
Oct
(8) |
Nov
(6) |
Dec
(14) |
2009 |
Jan
(8) |
Feb
(5) |
Mar
(6) |
Apr
(16) |
May
(6) |
Jun
(21) |
Jul
(7) |
Aug
(6) |
Sep
(8) |
Oct
(14) |
Nov
(17) |
Dec
(4) |
2010 |
Jan
(3) |
Feb
(9) |
Mar
(9) |
Apr
(2) |
May
|
Jun
|
Jul
(3) |
Aug
|
Sep
(1) |
Oct
|
Nov
(1) |
Dec
(4) |
2011 |
Jan
(1) |
Feb
(1) |
Mar
|
Apr
|
May
(2) |
Jun
(3) |
Jul
|
Aug
(2) |
Sep
(2) |
Oct
|
Nov
(1) |
Dec
|
2012 |
Jan
(1) |
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
(1) |
Nov
(2) |
Dec
|
2015 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
|
|
|
1
(2) |
2
|
3
|
4
(5) |
5
(5) |
6
(1) |
7
|
8
(4) |
9
|
10
|
11
(3) |
12
(6) |
13
(2) |
14
(5) |
15
(2) |
16
|
17
|
18
(3) |
19
(2) |
20
(6) |
21
(5) |
22
(1) |
23
|
24
|
25
(3) |
26
|
27
(8) |
28
(2) |
29
(5) |
30
(3) |
31
|
|
|
|
|
|
|
From: Nenad Stanic <nenad.stanic@as...> - 2004-10-30 21:31:33
|
I must correct myself. I have found the place with problem. When I try to compile my report I get java.lang.NoClassDefFoundError with stack trace: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory at net.sf.jasperreports.engine.design.JRVerifier.<clinit>(JRVerifier.java:116) at net.sf.jasperreports.engine.design.JRAbstractJavaCompiler.compileReport(JRAbstractJavaCompiler.java:101) at net.sf.jasperreports.engine.design.JRDefaultCompiler.compileReport(JRDefaultCompiler.java:137) at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:203) at asw.iis.reports.JRGridReportGenerator.makeGridReport(JRGridReportGenerator.java:526) at asw.iis.reports.JRGridReportGenerator.makeReport(JRGridReportGenerator.java:154) at org.apache.jsp.JasperGridReportGenerator_jsp._jspService(JasperGridReportGenerator_jsp.java:211) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:536) Can anybody help? Nenad Stanic |
From: Nenad Stanic <nenad.stanic@as...> - 2004-10-30 20:55:56
|
We are using Jasperreports 0.5.3 in our application with Tomcat. We now want to move to 0.6.1 but we are having difficulties: First time when I try to get report I after starting tomcat I get Exception: org.apache.jasper.JasperException: with this stack trace: org.apache.jasper.JasperException: org/apache/commons/logging/LogFactory at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:536) Every other time, after that, when i try to get report I get same exception with differnt stack trace: org.apache.jasper.JasperException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2416) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:601) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:536) It all worked well with JasperReports 0.5.3. Does anyone haw a clue what's wrong and how to fix it? Thanks!!! Nenad Stanic |
From: Kalpesh Chordia <kchordia@eg...> - 2004-10-30 04:25:57
|
use order by $P!{SortField}; -----Original Message----- From: David Robison To: jasperreports-questions@... Sent: 10/29/2004 10:04 PM Subject: [jasperreports-questions] Parameters in QueueString (for Order By) I want to pass a parameter to my Jasper report that contains the order by fields. In the query string I have the code: ... order by $P{SortField}; However it complains that I have a non-integer constant after the order by. I suspect that it is putting in "order by 'asset.name'" when the parranter has the string value asset.name. Any thougts or ideas? Thanks, David Robison ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_idU88&alloc_id065&op=click _______________________________________________ jasperreports-questions mailing list jasperreports-questions@... https://lists.sourceforge.net/lists/listinfo/jasperreports-questions |
From: Bill Schnellinger <bill@sc...> - 2004-10-29 22:47:23
|
I have used many sub reports,and I use all my own datasources. I pass into the top level report a list of all sub reports that I am going to use. Here, I create a new datasource to the sub report using a field in the current object. <subreport isUsingCache="false"> <reportElement mode="Opaque" x="0" y="2" width="750" height="18" forecolor="#000000" backcolor="#FFFFFF" positionType="Float" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="true"/> <dataSourceExpression><![CDATA[ new MyJasperReportsModelAdapter( (java.util.Collection)$F{referenceForm} , null) ]]></dataSourceExpression> <subreportExpression class="dori.jasper.engine.JasperReport"><![CDATA[ $P{refForm} ]]></subreportExpression> </subreport> The following is an example where I need to pass the current object Im working on to a method in the scriptlet, so that it can process some data and return it as a collection to the sub report. <subreport isUsingCache="false"> <reportElement mode="Opaque" x="0" y="17" width="750" height="16" forecolor="#000000" backcolor="#FFFFFF" positionType="Float" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="true"/> <parametersMapExpression><![CDATA[ new HashMap($P{REPORT_PARAMETERS_MAP}) ]]></parametersMapExpression> <dataSourceExpression><![CDATA[ new MyJasperReportsModelAdapter( (java.util.Collection) ((Scriptlet)$P{REPORT_SCRIPTLET} ).getActivitiesFromWorkFlow( (xxx) ( (MyJasperReportsModelAdapter)$P{REPORT_DATA_SOURCE} ).getCurrent()) , null) ]]></dataSourceExpression> <subreportExpression class="dori.jasper.engine.JasperReport"><![CDATA[ $P{signoff} ]]></subreportExpression> </subreport> Here is an example where I pass the parametes that I have passed in from the top level to the sub report ( because this sub report also has subreports). I also send in a parameter, since in the sub report I do things based on that value. ( printWhen stuff ) <subreport isUsingCache="false"> <reportElement mode="Opaque" x="0" y="0" width="750" height="16" forecolor="#000000" backcolor="#FFFFFF" positionType="Float" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="true"/> <parametersMapExpression><![CDATA[ new HashMap($P{REPORT_PARAMETERS_MAP}) ]]></parametersMapExpression> <subreportParameter name="numDiscrepancies"> <subreportParameterExpression><![CDATA[ new Integer( ((java.util.Collection)$F{discrepancies}).size() ) ]]></subreportParameterExpression> </subreportParameter> <dataSourceExpression><![CDATA[ new MyJasperReportsModelAdapter( (java.util.Collection)$F{discrepancies}, $P{REPORT_SELECTION} ) ]]></dataSourceExpression> <subreportExpression class="dori.jasper.engine.JasperReport"><![CDATA[ $P{discrepancy} ]]></subreportExpression> </subreport> Hope these help. -----Original Message----- From: jasperreports-questions-admin@... [mailto:jasperreports-questions-admin@...] On Behalf Of Jim McMaster Sent: Friday, October 29, 2004 11:53 AM To: jasperreports-questions@... Subject: [jasperreports-questions] Question on subreports -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I am using JasperReports with a JavaBeans structure that does not fit any of the standard datasources. It is a tree structure, with a Map of StandardBeans containing a Map of IndicatorBeans. I wrote a custom datasource that iterates over the IndicatorBeans, going to the next StandardBean, and using a report group on the StandardBean to get group headers where I need them. This works well. Now I need a different report, that has a three-by-three table on a single page. Each cell contains information for a single StandardBean. It has a title with a description of the standard, followed by a list of indicators in that standard. It seems to me a subreport for each cell is a good way to do this. My question is, how to implement the datasource? I could use my original data source, if there were a way to get the subreport to end when the StandardBean changes, but I don't see a way to do that (grouping perhaps?) I could easily write a new custom datasource which selects the appropriate StandardBean and iterates through the IndicatorBeans. I would need to pass a subreport parameter to the datasource to select the StandardBean and initialize the Iterator, but I can't figure out how to do that either. An alternative method would be to pass the parameter to a constructor for a different datasource instance each time, but again, I don't know how to do that. Thank you very much for any assistance. - -- Jim McMaster mailto:jim.mcmaster@... -----BEGIN PGP SIGNATURE----- Version: PGP 8.1 iQA/AwUBQYKRc2aP5l7/atSJEQIAWwCeLgIuP+UDyvWl9+fARuVz+gN4I68An0Yv t70Ec3ogkChaRM6Z7+yJvr9z =Lv7g -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ jasperreports-questions mailing list jasperreports-questions@... https://lists.sourceforge.net/lists/listinfo/jasperreports-questions |
From: Edilmar <edilista@in...> - 2004-10-29 19:10:03
|
Hi, I have look at samples from JasperReports, and I'd like to use it in Swing Desktop Client/Server apps. The default viewer has worked fine, but I need some "advanced" things: 1) A Special Viewer, like sample DataSourceApp, that has a special button to generate PDF, XLS and other format files. Is there some way to call the same viewer from my app? Because I didn't see how to do this, only saw a way to call it from build.xml file, none Java code for it. 2) Is there some way to translate the viewer for other languages, not only English? I'd like to translate to Portuguese/Brazil. 3) I'd like to know if it's possible to display a progress bar, advancing from 0% to 100% of report processing. Is there some default way into Jasper API for this? Or is there some way to capture the % of processing to my app generates the progress bar? Thanks for any help, |
From: Jim McMaster <jim.mcmaster@co...> - 2004-10-29 18:52:46
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I am using JasperReports with a JavaBeans structure that does not fit any of the standard datasources. It is a tree structure, with a Map of StandardBeans containing a Map of IndicatorBeans. I wrote a custom datasource that iterates over the IndicatorBeans, going to the next StandardBean, and using a report group on the StandardBean to get group headers where I need them. This works well. Now I need a different report, that has a three-by-three table on a single page. Each cell contains information for a single StandardBean. It has a title with a description of the standard, followed by a list of indicators in that standard. It seems to me a subreport for each cell is a good way to do this. My question is, how to implement the datasource? I could use my original data source, if there were a way to get the subreport to end when the StandardBean changes, but I don't see a way to do that (grouping perhaps?) I could easily write a new custom datasource which selects the appropriate StandardBean and iterates through the IndicatorBeans. I would need to pass a subreport parameter to the datasource to select the StandardBean and initialize the Iterator, but I can't figure out how to do that either. An alternative method would be to pass the parameter to a constructor for a different datasource instance each time, but again, I don't know how to do that. Thank you very much for any assistance. - -- Jim McMaster mailto:jim.mcmaster@... -----BEGIN PGP SIGNATURE----- Version: PGP 8.1 iQA/AwUBQYKRc2aP5l7/atSJEQIAWwCeLgIuP+UDyvWl9+fARuVz+gN4I68An0Yv t70Ec3ogkChaRM6Z7+yJvr9z =Lv7g -----END PGP SIGNATURE----- |
From: Brandon Knitter <knitterb@bl...> - 2004-10-29 17:36:57
|
I've been on the hunt for a Jasper Reports server, something that will schedule and run reports. I found OpenReports from Open Source Software, but that's using an older version of Jasper Reports. I was going to write one and start a new project at SF, but I wanted to check if there was anything out there people like. A web interface would be great, but not required. Also, it has to be able to run sub-reports as well. Thanks! :) -- -bk |
From: David Robison <drrobison@op...> - 2004-10-29 16:50:30
|
I want to pass a parameter to my Jasper report that contains the order b= y fields. In the query string I have the code: ... order by $P{SortField}; However it complains that I have a non-integer constant after the order = by. I suspect that it is putting in "order by 'asset.name'" when the par= ranter has the string value asset.name. Any thougts or ideas=3F Thanks, David Robison |
From: Jim McMaster <jim.mcmaster@co...> - 2004-10-28 23:29:34
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I have a detail band defined to be 30 pixels tall, expected to grow as text fields are filled. I then have five text fields defined with top=5 and height=20, FixRelativeToTop and stretch RelativeToTallestObject. In order to create a tabular look, I have six lines defined top=0, height=30, width=0, FixRelativeToTop, print when detail overflows and stretch RelativeToBandHeight. Finally, I have a line top=29, height=0, width=720, NoStretch, Print when detail overflows, to create a bottom border. I cannot get this line to print in all cases. If I set the position to FixRelativeToBottom, it appears between detail items, but not at the bottom of the page. If I define it as Float, it appears at the bottom of the page most of the time, but not at all between detail items. Can anyone shed light on this problem? I really am at my wits end, and my project schedule does not permit me to spend another several hours debugging JasperReports. Thank you for any assistance you can provide. - -- Jim McMaster mailto:jim.mcmaster@... -----BEGIN PGP SIGNATURE----- Version: PGP 8.1 iQA/AwUBQYGA0GaP5l7/atSJEQKKFACeLlQmUHSoxlKc4aL8CFzULQPQb+8AoIz+ 9o7PJc292ap8qrmUlx69wA/U =jelK -----END PGP SIGNATURE----- |
From: Jim McMaster <jim.mcmaster@co...> - 2004-10-28 23:05:59
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sorry to respond to my own post, but no one else did... > > I am brand new to JasperReports, and am having problems. I > have attached the report definition. > > 1) I have a standardCode text field, set to "Stretch relative > to tallest object". The text is always truncated to a single line. > > 2) Lines line-1, line-2, line-4 and line-5 never appear at all. > > 3) Detail fields overflow to the next page as I want them to, > but drop a few lines of text at the bottom of the page, along > with line-13. I suspect they are hidden behind the > pageFooter band, but do not know how to fix it. > > 4) When the standardCode group breaks, I do not get a new > group header. On page 3 of the report, I want a new group > header between indicator 1.1.e and indicator 2.1.a. > > 5) The perfLevelText field does not appear at all. > > I would appreciate any help the list can provide. I have > people trying to use the reports, and 1, 3 and 4 are > show-stopper issues. > Thank you very much. 1, 4 and 5 were my errors in the definition. Numbers 1 and 3 were due to errors in JasperReports. At line 509 of JRFillTextField.java, we have: chopTextElement(availableStretchHeight - getRelativeY() + getY() + getBandBottomY()); In my case, availableStretchHeight=407, getRelativeY()=5, getY()=5 and getBandBottomY()=5. Oops!, chopTextElement gets called thinking it has 407-5+5+5=412 points available. Therefore, it puts in an extra line or two. When JR tries to actually render 412 points of stuff in a 392 point area, it lops off the excess. The fix is: chopTextElement(availableStretchHeight - (getRelativeY() + getY() + getBandBottomY())); Several similar problems seem to exist. At line 489 of JRFillTextField.java, we have: if (availableStretchHeight >= getRelativeY() - getY() - getBandBottomY()) This is true anytime the availableStretchHeight is greater than -5. I think this should be: if (availableStretchHeight >= getRelativeY() + getY() + getBandBottomY()) Again at line 577 of the same file: availableStretchHeight < this.getRelativeY() - this.getY() - this.getBandBottomY() Should be: availableStretchHeight < this.getRelativeY() + this.getY() + this.getBandBottomY() The same problem occurs at line 200 of JRFillStaticText: availableStretchHeight < getRelativeY() - getY() - getBandBottomY() Should be: availableStretchHeight < getRelativeY() + getY() + getBandBottomY() Thank you for the good product. Now that I have changed these lines, I only have one problem left, which I will ask about in a separate email. - -- Jim McMaster mailto:jim.mcmaster@... -----BEGIN PGP SIGNATURE----- Version: PGP 8.1 iQA+AwUBQYF7SGaP5l7/atSJEQL5BgCg7q0ofpPRUVSWRCUhdZS+B0M6e2gAmMFa Y80DatdGg+MVwGKEj2EG9WM= =GiUf -----END PGP SIGNATURE----- |
From: Kevin C. Dorff <kdorff@fa...> - 2004-10-27 22:47:31
|
Hmm, doesn't really look like a competitors to iReports, just another way to do reporting. Doesn't look like a report design tool to me. I need very specific control over how my reports look, grouping, subreports, positioning, etc. Kevin On Wed, 27 Oct 2004 14:10:31 -0300, "Edilmar" <edilista@...> said: > I use Open Reports (http://opensourcesoft.net/index.php) and I think > it's better than IReports. > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > _______________________________________________ > jasperreports-questions mailing list > jasperreports-questions@... > https://lists.sourceforge.net/lists/listinfo/jasperreports-questions |
From: Edilmar <edilista@in...> - 2004-10-27 18:05:20
|
I use Open Reports (http://opensourcesoft.net/index.php) and I think it's better than IReports. |
From: Edson Carlos Ericksson Richter <edson.richter@mg...> - 2004-10-27 17:53:02
|
Hi! About a two weeks ago I've started to test BlackDown VM 1.4.2 FCS and, luck! It's faster and stable than Sun JDK 1.4.2!!! Ok, I admit: eat a little more memory, but is too much stable, and their GC, besides is less agressive, is more stable too (less memory crashes in VM)!!! Just my 2c. Edson Richter |
From: Edson Carlos Ericksson Richter <edson.richter@mg...> - 2004-10-27 17:13:12
|
Thes best one (IMHO, I dont want start flames) is iReport 0.4.0. And if you have a VM well right installed, the startup script starts fine. If you are in linux, check the .sh file. Is a right easy reading (I never write one shell script in my life, but I was capable to fix the file to my environment). Some tips that always turn things easier to java starters: 1) Install JDK, and run JDK (not JRE). To do this on windows, put the path for bin in JDK before all other things (including %WINDIR%\system and %WINDIR%\system32). To compile reports the JDK is required. 2) Always set the environment variables JAVA_HOME and JDK_HOME to point you JDK installation. In windows systems (2K and over), set this as SYSTEM VARIABLES (requires administrator rights). On Linux (RedHat family - 8, 9, FC1, FC2), set this variables in /etc/profile. Don't forget to add it to your PATH too. After logout and login, open a promt and test with "java -version". It should report the JDK version (not JRE version). After all, your startup.sh should initiate iReport 0.4.0 without any problem. Richter Marco Mistroni escreveu: >Hello all, > Can anyone please suggest me one RUNNABLE report designer for >jasper? >I have tried many (ireports, jasper designer etc) and none of htem seems >to >Run.. >There are always problems when running the script that should start up >The designer. > >Anyone has a running designer tool to suggest me? > >Anyone can help please? > >Thanks in advance and regards > Marco > > > > >------------------------------------------------------- >This SF.Net email is sponsored by: >Sybase ASE Linux Express Edition - download now for FREE >LinuxWorld Reader's Choice Award Winner for best database on Linux. >http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click >_______________________________________________ >jasperreports-questions mailing list >jasperreports-questions@... >https://lists.sourceforge.net/lists/listinfo/jasperreports-questions > > > > |
From: Marco Mistroni <mmistroni@wa...> - 2004-10-27 14:12:26
|
Hello, Thanx! I was using jdk 1.3 for some mysterious reason on my machine.. Now it works fine Thanx and regards marco -----Original Message----- From: jasperreports-questions-admin@... [mailto:jasperreports-questions-admin@...] On Behalf Of Kevin C. Dorff Sent: 27 October 2004 14:49 To: JasperReports-Questions Subject: Re: [jasperreports-questions] designer for jasperreporrts I have used iReport and JasperAssistant frequently. Are you using JDK1.4? Is the java executable in your classpath? Kevin On Wed, 27 Oct 2004 09:46:56 +0100, "Marco Mistroni" <mmistroni@...> said: > Hello all, > Can anyone please suggest me one RUNNABLE report designer for > jasper? > I have tried many (ireports, jasper designer etc) and none of htem seems > to > Run.. > There are always problems when running the script that should start up > The designer. > > Anyone has a running designer tool to suggest me? > > Anyone can help please? > > Thanks in advance and regards > Marco > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > _______________________________________________ > jasperreports-questions mailing list > jasperreports-questions@... > https://lists.sourceforge.net/lists/listinfo/jasperreports-questions ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ jasperreports-questions mailing list jasperreports-questions@... https://lists.sourceforge.net/lists/listinfo/jasperreports-questions |
From: Kevin C. Dorff <kdorff@fa...> - 2004-10-27 13:49:27
|
I have used iReport and JasperAssistant frequently. Are you using JDK1.4? Is the java executable in your classpath? Kevin On Wed, 27 Oct 2004 09:46:56 +0100, "Marco Mistroni" <mmistroni@...> said: > Hello all, > Can anyone please suggest me one RUNNABLE report designer for > jasper? > I have tried many (ireports, jasper designer etc) and none of htem seems > to > Run.. > There are always problems when running the script that should start up > The designer. > > Anyone has a running designer tool to suggest me? > > Anyone can help please? > > Thanks in advance and regards > Marco > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > _______________________________________________ > jasperreports-questions mailing list > jasperreports-questions@... > https://lists.sourceforge.net/lists/listinfo/jasperreports-questions |
From: Marco Mistroni <mmistroni@wa...> - 2004-10-27 08:47:08
|
Hello all, Can anyone please suggest me one RUNNABLE report designer for jasper? I have tried many (ireports, jasper designer etc) and none of htem seems to Run.. There are always problems when running the script that should start up The designer. Anyone has a running designer tool to suggest me? Anyone can help please? Thanks in advance and regards Marco |
From: Giulio Toffoli <gt@bu...> - 2004-10-27 08:27:25
|
Use java 1.4 or grater Giulio At 18.49 25/10/2004, you wrote: >Hi all, > I want to use IReports to write JasperReports.. >However, when I run it I always get this exception : > >Exception in thread "main" java.lang.NoSuchMethodError > at >it.businesslogic.ireport.gui.SplashDialog.initComponents(SplashDialog >.java:41) > at >it.businesslogic.ireport.gui.SplashDialog.<init>(SplashDialog.java:18 >) > at >it.businesslogic.ireport.gui.MainFrame.main(MainFrame.java:5753) > > >I have had this exception with all releases...anyone can tell me where >is >The trick? > >Regards > marco > > > >------------------------------------------------------- >This SF.net email is sponsored by: IT Product Guide on ITManagersJournal >Use IT products in your business? Tell us what you think of them. Give us >Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more >http://productguide.itmanagersjournal.com/guidepromo.tmpl >_______________________________________________ >jasperreports-questions mailing list >jasperreports-questions@... >https://lists.sourceforge.net/lists/listinfo/jasperreports-questions |
From: Edilmar <edilista@in...> - 2004-10-25 17:26:33
|
Hi, I have look at samples from JasperReports, and I'd like to use it in Swing Desktop Client/Server apps. The default viewer has worked fine, but I need some "advanced" things: 1) A Special Viewer, like sample DataSourceApp, that has a special button to generate PDF, XLS and other format files. Is there some way to call the same viewer from my app? Because I didn't see how to do this, only saw a way to call it from build.xml file, none Java code for it. 2) Is there some way to translate the viewer for other languages, not only English? I'd like to translate to Portuguese/Brazil. 3) I'd like to know if it's possible to display a progress bar, advancing from 0% to 100% of report processing. Is there some default way into Jasper API for this? Or is there some way to capture the % of processing to my app generates the progress bar? Thanks for any help, |
From: Marco Mistroni <mmistroni@wa...> - 2004-10-25 16:49:57
|
Hi all, I want to use IReports to write JasperReports.. However, when I run it I always get this exception : Exception in thread "main" java.lang.NoSuchMethodError at it.businesslogic.ireport.gui.SplashDialog.initComponents(SplashDialog .java:41) at it.businesslogic.ireport.gui.SplashDialog.<init>(SplashDialog.java:18 ) at it.businesslogic.ireport.gui.MainFrame.main(MainFrame.java:5753) I have had this exception with all releases...anyone can tell me where is The trick? Regards marco |
From: Kalpesh Chordia <kchordia@eg...> - 2004-10-25 04:31:29
|
Declare _1 as parameter. The number of parameters you pass to report at fill time in parameter hash map, same number of parameters should be defined in the report at compile time with same name and same data type. -----Original Message----- From: Julien Martin [mailto:balteo@...] Sent: Thursday, October 21, 2004 7:12 PM To: jasperreports-questions@... Subject: [jasperreports-questions] Beginner needs help Hello, I am a beginner with Jasper and I have problems with parameters, fields and variables. I have read the tutorials and did not find the answer to my question. I have added a parameter ("_1") in my jasper report and I am trying to compile my .xml into a .jasper and the compiler says it cannot find the parameter. I intended to give jasper the parameter at runtime with the fillreport function. Where do I need to declare the parameter in order to avoid the compile-time problem? Here is the java class that exports the report into a pdf: public class MonTestJasperDeux { public static void main(String[] args) throws Exception { Map map = new Hashtable(); map.put("_1", "un"); map.put("_2", "deux"); map.put("_3", "trois"); List list = new ArrayList(); list.add("toto"); list.add("titi"); JRDataSource data = new JRBeanCollectionDataSource (list); InputStream jasperFile = MonTestJasperDeux.class.getResourceAsStream("JasperReportUn.jasper"); JasperPrint jPrint = JasperFillManager.fillReport(jasperFile, map, data); JasperExportManager.exportReportToPdfFile(jPrint, "D:\\DocsJulienMartin\\dev\\TestUnJasper\\TestJasper\\testDeux.pdf"); } } Here is my design: <?xml version="1.0" encoding="UTF-8" ?> <!-- Created with iReport - A designer for JasperReports --> <!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"> <jasperReport name="JasperReportUn" columnCount="1" printOrder="Vertical" orientation="Portrait" pageWidth="595" pageHeight="842" columnWidth="535" columnSpacing="0" leftMargin="30" rightMargin="30" topMargin="20" bottomMargin="20" whenNoDataType="NoPages" isTitleNewPage="false" isSummaryNewPage="false"> <property name="ireport.scriptlethandling" value="2" /> <variable name="list" class="java.lang.String" resetType="Report" calculation="Nothing"> </variable> <variable name="_1" class="java.lang.String" resetType="Report" calculation="Nothing"> </variable> <group name="MonGroup" isStartNewColumn="false" isStartNewPage="false" isResetPageNumber="false" isReprintHeaderOnEachPage="false" minHeightToStartNewPage="0" > <groupExpression><![CDATA[null]]></groupExpression> <groupHeader> <band height="50" isSplitAllowed="true" > </band> </groupHeader> <groupFooter> <band height="50" isSplitAllowed="true" > <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Opaque" x="237" y="19" width="101" height="74" forecolor="#000000" backcolor="#FFFFFF" key="textField-1" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font fontName="Arial" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{_1}]]></textFieldExpression> </textField> </band> </groupFooter> </group> <background> <band height="0" isSplitAllowed="true" > </band> </background> <title> <band height="50" isSplitAllowed="true" > </band> </title> <pageHeader> <band height="50" isSplitAllowed="true" > </band> </pageHeader> <columnHeader> <band height="30" isSplitAllowed="true" > </band> </columnHeader> <detail> <band height="100" isSplitAllowed="true" > <staticText> <reportElement mode="Opaque" x="172" y="55" width="63" height="14" forecolor="#000000" backcolor="#FFFFFF" key="staticText-1" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font fontName="Arial" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <text><![CDATA[Mon Texte]]></text> </staticText> </band> </detail> <columnFooter> <band height="30" isSplitAllowed="true" > </band> </columnFooter> <pageFooter> <band height="50" isSplitAllowed="true" > </band> </pageFooter> <lastPageFooter> <band height="50" isSplitAllowed="true" > </band> </lastPageFooter> <summary> <band height="50" isSplitAllowed="true" > </band> </summary> </jasperReport> Thanks in advance, Julien. _________________________________________________________ Do You Yahoo!? La mejor conexión a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ jasperreports-questions mailing list jasperreports-questions@... https://lists.sourceforge.net/lists/listinfo/jasperreports-questions |
From: ks ds <jancukrek@ya...> - 2004-10-22 04:00:19
|
morning....... i made a report using jasperreport and ireport as tool.there is subreports in my report (master report). the problem was i cannot invoke a subreport. but i can invoke my master report. this my source code: public static void main(String[] args) { try { JasperDesign jasperDesign = JasperManager.loadXmlDesign("C:\\iReport-0.4.0\\MasterReport.xml"); JasperReport jasperReport = JasperManager.compileReport(jasperDesign); // JasperDesign jasperDesign2 = JasperManager.loadXmlDesign("C:\\iReport-0.4.0\\Skill.xml"); // JasperReport jasperReport2 = JasperManager.compileReport (jasperDesign2); Map parameters = new HashMap(); // parameters.put("jaspertReport2",jasperReport2); parameters.put("skill_file", new String("C:\\iReport-0.4.0\\Skill.jasper")); Class.forName("org.gjt.mm.mysql.Driver"); Connection connection = DriverManager.getConnection("jdbc:mysql://localhost/lintasmedia","user","user";); String query = "select jabatan_sekarang,pengalaman,jabatan_dilamar,nama_lengkap,tempat_tanggal_lahir,jenis_kelamin from identitas where nama_lengkap = 'abc"; PreparedStatement ps = connection.prepareStatement(query); ResultSet rs = ps.executeQuery(); JRResultSetDataSource ds = new JRResultSetDataSource(rs); JasperPrint jasperPrint = JasperManager.fillReport(jasperReport, parameters, ds); JasperManager.printReportToPdfFile(jasperPrint, "c:\\MasterReport.pdf"); JasperViewer.viewReport(jasperPrint); } catch(Exception ex) { ex.printStackTrace(); } } please please help me expert ok......... BTW the this is the same problem....... Hi there,I am confused about the usage of the jasperreports' subreport. I makea simple example, but I can't get it work. Can any expert kindly pointout how to make it work?Here are the simple codes:<<MainReport.xml>>:-------------------<?xml version="1.0"?><!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD ReportDesign//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"><jasperReport name="MainReport" ><parameter name="subJrReport"class="dori.jasper.engine.JasperReport"/><title><band height="50"><subreport isUsingCache="true"><reportElement x="5" y="25" width="325" height="20" /><subreportExpression class="dori.jasper.engine.JasperReport"><![CDATA[$P{subJrReport}]]></subreportExpression></subreport></band></title></jasperReport><<SubReport.xml>>:------------------<?xml version="1.0"?><!DOCTYPE jasperReport PUBLIC "-//JasperReports//DTD ReportDesign//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"><jasperReport name="SubReport" ><title><band height="50"><staticText><reportElement x="0" y="25" width="200" height="25"/><textElement><font size="10" /></textElement><text><![CDATA[Shipper]]></text></staticText></band></title></jasperReport><<MainReportApp.java>>:-----------------------/** Created on 2004-3-30*/import dori.jasper.engine.design.JasperDesign;import dori.jasper.engine.JasperReport;import dori.jasper.engine.JasperManager;import dori.jasper.engine.JasperPrint;import dori.jasper.engine.JRDataSource;import dori.jasper.engine.JREmptyDataSource;import dori.jasper.engine.JRException;import dori.jasper.view.JasperViewer;import java.util.Map;import java.util.HashMap;/*** @author Tony, ZHOU Jingtao**/public class MainReportApp {public static void main(String[] args) throws JRException {// First, load JasperDesign from XML and compile it intoJasperReportJasperDesign jrDesign =JasperManager.loadXmlDesign("MainReport.xml");JasperReport jrReport = JasperManager.compileReport(jrDesign);JasperDesign subJrDesign =JasperManager.loadXmlDesign("SubReport.xml");JasperReport subJrReport =JasperManager.compileReport(subJrDesign);// Second, create a map of parameters to pass to the report.Map parameters = new HashMap();parameters.put("subJrReport", subJrReport);// Third, get a dataSourceJRDataSource jrDataSource = new JREmptyDataSource();// Fourth, create JasperPrint using fillReport() methodJasperPrint jrPrint =JasperManager.fillReport(jrReport, parameters, jrDataSource);// Or to view report in the JasperViewerJasperViewer.viewReport(jrPrint);}}The result is that I always get a blank screen.Thanks a lot! ok thanks for alll --------------------------------- Do you Yahoo!? vote.yahoo.com - Register online to vote today! |
From: Jim McMaster <jim.mcmaster@co...> - 2004-10-21 20:32:06
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I am brand new to JasperReports, and am having problems. I have attached the report definition. 1) I have a standardCode text field, set to "Stretch relative to tallest object". The text is always truncated to a single line. 2) Lines line-1, line-2, line-4 and line-5 never appear at all. 3) Detail fields overflow to the next page as I want them to, but drop a few lines of text at the bottom of the page, along with line-13. I suspect they are hidden behind the pageFooter band, but do not know how to fix it. 4) When the standardCode group breaks, I do not get a new group header. On page 3 of the report, I want a new group header between indicator 1.1.e and indicator 2.1.a. 5) The perfLevelText field does not appear at all. I would appreciate any help the list can provide. I have people trying to use the reports, and 1, 3 and 4 are show-stopper issues. Thank you very much. - -- Jim McMaster mailto:jim.mcmaster@... -----BEGIN PGP SIGNATURE----- Version: PGP 8.1 iQA/AwUBQXgctWaP5l7/atSJEQKexgCg5RM/NJp15g7KY70dO1H6pAF7EC0An05x 84N2EvY82eyvRTWrklMO2yH9 =Yvsi -----END PGP SIGNATURE----- |
From: Jim McMaster <jim.mcmaster@co...> - 2004-10-21 19:52:24
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I am brand new to JasperReports, and am having problems. I have attached the report definition and the resulting jprint file. 1) I have a standardCode text field, set to "Stretch relative to tallest object". The text is always truncated to a single line. 2) Lines line-1, line-2, line-4 and line-5 never appear at all. 3) Detail fields overflow to the next page as I want them to, but drop a few lines of text at the bottom of the page, along with line-13. I suspect they are hidden behind the pageFooter band, but do not know how to fix it. 4) When the standardCode group breaks, I do not get a new group header. On page 3 of the report, I want a new group header between indicator 1.1.e and indicator 2.1.a. I would appreciate any help the list can provide. I have people trying to use the reports, and 1, 3 and 4 are show-stopper issues. Thank you very much. - -- Jim McMaster mailto:jim.mcmaster@... -----BEGIN PGP SIGNATURE----- Version: PGP 8.1 iQA/AwUBQXgTbGaP5l7/atSJEQLrugCg2ejLesokQ0PuHokg8gvg5vgaIcMAoM1t j50V1oDgqFlmPUvIpt5oixdv =LYmu -----END PGP SIGNATURE----- |
From: Julien Martin <balteo@ya...> - 2004-10-21 13:42:12
|
Hello, I am a beginner with Jasper and I have problems with parameters, fields and variables. I have read the tutorials and did not find the answer to my question. I have added a parameter (_1) in my jasper report and I am trying to compile my .xml into a .jasper and the compiler says it cannot find the parameter. I intended to give jasper the parameter at runtime with the fillreport function. Where do I need to declare the parameter in order to avoid the compile-time problem? Here is the java class that exports the report into a pdf: public class MonTestJasperDeux { public static void main(String[] args) throws Exception { Map map = new Hashtable(); map.put("_1", "un"); map.put("_2", "deux"); map.put("_3", "trois"); List list = new ArrayList(); list.add("toto"); list.add("titi"); JRDataSource data = new JRBeanCollectionDataSource (list); InputStream jasperFile = MonTestJasperDeux.class.getResourceAsStream("JasperReportUn.jasper"); JasperPrint jPrint = JasperFillManager.fillReport(jasperFile, map, data); JasperExportManager.exportReportToPdfFile(jPrint, "D:\\DocsJulienMartin\\dev\\TestUnJasper\\TestJasper\\testDeux.pdf"); } } Here is my design: <?xml version="1.0" encoding="UTF-8" ?> <!-- Created with iReport - A designer for JasperReports --> <!DOCTYPE jasperReport PUBLIC "//JasperReports//DTD Report Design//EN" "http://jasperreports.sourceforge.net/dtds/jasperreport.dtd"> <jasperReport name="JasperReportUn" columnCount="1" printOrder="Vertical" orientation="Portrait" pageWidth="595" pageHeight="842" columnWidth="535" columnSpacing="0" leftMargin="30" rightMargin="30" topMargin="20" bottomMargin="20" whenNoDataType="NoPages" isTitleNewPage="false" isSummaryNewPage="false"> <property name="ireport.scriptlethandling" value="2" /> <variable name="list" class="java.lang.String" resetType="Report" calculation="Nothing"> </variable> <variable name="_1" class="java.lang.String" resetType="Report" calculation="Nothing"> </variable> <group name="MonGroup" isStartNewColumn="false" isStartNewPage="false" isResetPageNumber="false" isReprintHeaderOnEachPage="false" minHeightToStartNewPage="0" > <groupExpression><![CDATA[null]]></groupExpression> <groupHeader> <band height="50" isSplitAllowed="true" > </band> </groupHeader> <groupFooter> <band height="50" isSplitAllowed="true" > <textField isStretchWithOverflow="false" pattern="" isBlankWhenNull="false" evaluationTime="Now" hyperlinkType="None" > <reportElement mode="Opaque" x="237" y="19" width="101" height="74" forecolor="#000000" backcolor="#FFFFFF" key="textField-1" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font fontName="Arial" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <textFieldExpression class="java.lang.String"><![CDATA[$P{_1}]]></textFieldExpression> </textField> </band> </groupFooter> </group> <background> <band height="0" isSplitAllowed="true" > </band> </background> <title> <band height="50" isSplitAllowed="true" > </band> </title> <pageHeader> <band height="50" isSplitAllowed="true" > </band> </pageHeader> <columnHeader> <band height="30" isSplitAllowed="true" > </band> </columnHeader> <detail> <band height="100" isSplitAllowed="true" > <staticText> <reportElement mode="Opaque" x="172" y="55" width="63" height="14" forecolor="#000000" backcolor="#FFFFFF" key="staticText-1" stretchType="NoStretch" positionType="FixRelativeToTop" isPrintRepeatedValues="true" isRemoveLineWhenBlank="false" isPrintInFirstWholeBand="false" isPrintWhenDetailOverflows="false"/> <textElement textAlignment="Left" verticalAlignment="Top" rotation="None" lineSpacing="Single"> <font fontName="Arial" pdfFontName="Helvetica" size="10" isBold="false" isItalic="false" isUnderline="false" isPdfEmbedded ="false" pdfEncoding ="Cp1252" isStrikeThrough="false" /> </textElement> <text><![CDATA[Mon Texte]]></text> </staticText> </band> </detail> <columnFooter> <band height="30" isSplitAllowed="true" > </band> </columnFooter> <pageFooter> <band height="50" isSplitAllowed="true" > </band> </pageFooter> <lastPageFooter> <band height="50" isSplitAllowed="true" > </band> </lastPageFooter> <summary> <band height="50" isSplitAllowed="true" > </band> </summary> </jasperReport> Thanks in advance, Julien. _________________________________________________________ Do You Yahoo!? La mejor conexión a internet y 25MB extra a tu correo por $100 al mes. http://net.yahoo.com.mx |