Jump to content
We've recently updated our Privacy Statement, available here ×

2006 IR Open Dicussion

Members
  • Posts

    1,900
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by 2006 IR Open Dicussion

  1. By: Chris Beels - cbeels Overflow - inf loop in new version 2002-11-01 17:26 We were thinking about upgrading to the new Jasper version, but when we tried to run with it, we get an "Infinite loop error" having to do with "willOverflow". I imagine this may have to do with the fact that we place elements in the PageHeader on all parts of the page (and get a Warning : Element placed outside band area), but there isn't really an alternative to this as the header bands the top, right and bottom edge of the page. Any ideas? Thanks, Chris By: Teodor Danciu - teodord RE: Overflow - inf loop in new version 2002-11-02 13:42 Hi, The problem comes indeed from the warning. You can create the frame around the page using multiple lines. You can have a glimpse of that if you check the "stretch" sample. The vertical lines should have stretchType="RelativeToBandHeight" so that the frame always close around. I hope this helps. Teodor
  2. By: Greg - gregor92 How to create multi colored bands in detail 2002-11-01 11:11 I'd like to have the background for every other line in my detail a different color. I created a scriptlet where I passed in $V{REPORT_COUNT} to see if the line is odd or even and then returned the appropriate background color. However I'm unable to add this value to the textField background attribute. Please help. By: Teodor Danciu - teodord RE: How to create multi colored bands in detail 2002-11-01 12:14 Hi, Here you are: http://jasperreports.sourceforge.net/tips.tricks.html#formatting Good luck! Teodor
  3. By: Pinkal Shukla - pinkal urgent 2002-10-31 10:32 can some body help me to get starting with jasper report from scratch as to layman By: Greg - gregor92 RE: urgent 2002-11-01 11:31 I think the best way is to take one of the samples and modify to soot your needs.
  4. By: Nobody/Anonymous - nobody Welcome to Help 2001-09-25 07:25 Welcome to Help By: Pinkal Shukla - pinkal RE: Welcome to Help 2002-10-31 10:45 hi i have dowloaded jasper report have to now start it please let me know By: Teodor Danciu - teodord RE: Welcome to Help 2002-10-31 12:55 Hi, Read the how.to.txt files present in the root directory of the project and in the /demo directory. Basically, all you have to do is to install ANT and then go to sample directory and launch commands like >ant compile >ant fill >ant view Good luck! Teodor
  5. By: Mairead Fagan - peggynelly jasperReport suitable for my needs??? 2002-08-08 02:32 Hi I have been given the task of finding a reporting tool suitable for the project we are working on at the moment.The project uses EJBs,Oracle db and will be running on Linex.It is a web based project that will roster nurses in a hospital setting.So the reporting tool will e.g list the nurses tht worked on a particular ward on a given date. etc. Can anyone tell me is this tool suitable.As i am a junior programmer my knowledge is limited. Thank u Mairead By: ajay kumar - ajaykumar RE: jasperReport suitable for my needs??? 2002-10-28 21:46 you can pass the query: select name,ward where ward="" and date=""..is it ok.. By: Teodor Danciu - teodord RE: jasperReport suitable for my needs??? 2002-10-29 12:31 Hi, This SQL query won't work on any known relational database server. As you can see, the FROM clause is missing. Otherwise, you could set any SQL query in JasperReports, as long as the server undestands it and returns what you expect. Thank you, Teodor
  6. By: Karwan Salih - salihk Multipe-page report, how to generate? 2002-10-28 06:59 Hi, I have a report that cannot fit in one page and exceeds to the second page. Is there anyway to generate tow-page report provided that each record in the RecordSet generates one set of tow-page output. Thank you in advance. By: Teodor Danciu - teodord RE: Multipe-page report, how to generate? 2002-10-28 13:01 Hi, Here you are: http://jasperreports.sourceforge.net/tips.tricks.html#largebands Good luck! Teodor
  7. By: Karwan Salih - salihk Variable=Sum(Fields)? 2002-10-24 13:01 Hi, I've created a one-page report that has several fields with Double values retreived from the database. Is it possible to create a variable that holds the summation of those fields at the end of the page? Each page represents one record in the RecordSet. Thanks. By: Teodor Danciu - teodord RE: Variable=Sum(Fields)? 2002-10-27 13:11 Hi, Your variable should look like this: <variable name="MySumVariable" class="java.lang.Double" resetType="Page" calculation="Sum"> <variableExpression> new Double( $F{MyField1}.doubleValue() + $F{MyField2}.doubleValue() + $F{MyField3}.doubleValue() + $F{MyField4}.doubleValue() ) </variableExpression> </variable> If you have only one record per page anyway, the "resetType" and "calculation" attributes could be left to their default values: "Report" and "Nothing". I hope this helps. Teodor
  8. By: herve oum - oum_h Compiling Jasper Report Design Problem 2002-10-25 06:08 Hi, I using Jasperreport in with Tomcat 4.x. When compiling my report design XML file , I encountered the following error The error dump tomcat is: -------------------------------------------------------------------------------------------------------- dori.jasper.engine.JRException: Errors were encountered when compiling report design: Note: sun.tools.javac.Main has been deprecated. /home/oum/Stage2002/dev/jasperreport/reports/temp/mic-db-report.java:17: '{' expected. public class mic-db-report extends JRCalculator ^ /home/oum/Stage2002/dev/jasperreport/reports/temp/mic-db-report.java:17: Public class mic must be defined in a file called "mic.java". public class mic-db-report extends JRCalculator ^ 2 errors, 1 warning at dori.jasper.engine.design.JRCompiler.compileReport(JRCompiler.java:145) at dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:129) at dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:101) at pdf.BuildPdfServlet.processRequest(BuildPdfServlet.java:171) at pdf.BuildPdfServlet.doGet(BuildPdfServlet.java:231) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) 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.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:223) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.netbeans.modules.web.monitor.catalina.MonitorValve.invoke(MonitorValve.java:142) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125) at java.lang.Thread.run(Thread.java:536) Please is Someone Can help me to come about this issue ? Thank's By: Karwan Salih - salihk RE: Compiling Jasper Report Design Problem 2002-10-25 06:54 Hi, Don't worry about the sun.tools.javac.Main has been deprecated warning, it is just a warning. About the exceptions, just rename the source file so that you don't have hyphens (-) in the filename. I've had similar problems and they go away by removing the hyphens. This could also eliminate the missing { exception at line 17. Good Luck.
  9. By: herve oum - oum_h Compiling Jasper Report Design Problem 2002-10-25 06:50 Hi, I using Jasperreport in with Tomcat 4.x. When compiling my report design XML file , I encountered the following error The error dump tomcat is: -------------------------------------------------------------------------------------------------------- dori.jasper.engine.JRException: Errors were encountered when compiling report design: Note: sun.tools.javac.Main has been deprecated. /home/oum/Stage2002/dev/jasperreport/reports/temp/mic-db-report.java:17: '{' expected. public class mic-db-report extends JRCalculator ^ /home/oum/Stage2002/dev/jasperreport/reports/temp/mic-db-report.java:17: Public class mic must be defined in a file called "mic.java". public class mic-db-report extends JRCalculator ^ 2 errors, 1 warning at dori.jasper.engine.design.JRCompiler.compileReport(JRCompiler.java:145) at dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:129) at dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:101) at pdf.BuildPdfServlet.processRequest(BuildPdfServlet.java:171) at pdf.BuildPdfServlet.doGet(BuildPdfServlet.java:231) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) 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.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:223) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.netbeans.modules.web.monitor.catalina.MonitorValve.invoke(MonitorValve.java:142) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1027) at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1125) at java.lang.Thread.run(Thread.java:536) Please is Someone Can help me to come about this issue ? Thank's
  10. By: Karwan Salih - salihk Variable=Sum(Fields)? 2002-10-24 13:03 Hi, I've created a one-page report that has several fields with Double values retreived from the database. Is it possible to create a variable that holds the summation of those fields at the end of the page? Each page represents one record in the RecordSet. Thanks.
  11. By: olivier bregeas - bregeras SetVariable w/o Scriptlet 2002-10-23 06:37 Is it possible to set a variable after or before the report filling w/o using scriptlet ? thanks By: olivier bregeas - bregeras RE: SetVariable w/o Scriptlet 2002-10-23 09:35 forget it. i am stupid. this is a parameter ;-)
  12. By: duc l - lduc Dynamic rupture driven by user 2002-10-22 01:10 Hi, when i put this expression group i can't compile the webReport.xml <parameter name="UserGroupingType" class="java.lang.String"/> ... <groupExpression> ( $P{UserGroupingType} == "IdGrouping" )? ( $F{Id} ): ( ($P{UserGroupingType} == "NameGrouping")?($F{Name}):($F{City}) ) </groupExpression> error compile : dori.jasper.engine.JRException: Errors were encountered when compiling report design: C:Program FilesIBMApplication Developer Trial EditionworkspaceJasperwebApplicationreportsWebappReport.java:206: Incompatible type for ?:. Can't convert java.lang.Integer to java.lang.String. )? ^ C:Program FilesIBMApplication Developer Trial EditionworkspaceJasperwebApplicationreportsWebappReport.java:350: Incompatible type for ?:. Can't convert java.lang.Integer to java.lang.String. )? ^ C:Program FilesIBMApplication Developer Trial EditionworkspaceJasperwebApplicationreportsWebappReport.java:494: Incompatible type for ?:. Can't convert java.lang.Integer to java.lang.String. )? ^ 3 errors at dori.jasper.engine.design.JRCompiler.compileReport(JRCompiler.java:145) By: Teodor Danciu - teodord RE: Dynamic rupture driven by user 2002-10-22 13:36 Hi, As I told you, this expression I wrote was only ment to give you an idea about how to solve your problem. I didn't know the type of your report fields. From the error, I undestand that the Id field is Integer. So, the solution is at hand: <groupExpression> ( $P{UserGroupingType} == "IdGrouping" )? ( String.valueOf($F{Id}) ): ( ($P{UserGroupingType} == "NameGrouping")?($F{Name}):($F{City}) ) </groupExpression> Good luck! Teodor By: duc l - lduc RE: Dynamic rupture driven by user 2002-10-23 02:25 hi, thanks for all. Jasper Report is very nice and easy to use in webs applications. Congratulation . Laurent
  13. By: olivier bregeas - bregeras dynamis column creation 2002-10-21 04:04 Hi I have a query which return 3 information A date a column id (1 to 4) and an amount. How can I put the correct amount in the correct column during the filling; Thanks a lot. Olivier By: Teodor Danciu - teodord RE: dynamis column creation 2002-10-21 12:46 Hi, I don't understand. What exactly are you trying to do? Could you be more precise? Thank you, Teodor By: olivier bregeas - bregeras RE: dynamis column creation 2002-10-22 04:46 My recordset contain, the following data : taId;tfId;stfId;idCol;amount -1;-1;-1;1;10 -1;-1;-1;2;11 -1;-1;-1;3;12 -1;-1;-1;4;13 2;-1;-1;2;20 I want to make a report with, on the same line : -1; -1; -1; -1; 10; 11; 12; 13 2; -1; -1; ; ; 20; ; This is clear in my mind, but its not really easy to write just with text :-) Is this is clear enought for you ? thanks By: olivier bregeas - bregeras RE: dynamis column creation 2002-10-22 07:51 Dont care about this problem. I make with an other method. But I have an other question. Is it possible to make the sum before the display of the value. For example If have a report like this : By: olivier bregeas - bregeras RE: dynamis column creation 2002-10-22 07:52 Dont care about this problem. I make with an other method. But I have an other question. Is it possible to make the sum before the display of the value. For example If have a report like this : isumOfItem : 30(calculated) Item1 : 10 (from field) item2 : 20 (from field) Thanks By: Teodor Danciu - teodord RE: dynamis column creation 2002-10-22 13:25 Hi, Yes, you can. Check the "evaluationTime" attribute of the <textField> element. It is used in some of the samples, when displaying "Page i of N". Good luck! Teodor
  14. By: Nandhini - nandhini java.lang.ClassNotFoundException: 2002-10-21 07:28 hi, I am getting the following errors .Where have I gone wrong? "D:jdk1.3.1_03binjava.exe" FontsApp -Tcompile -FFontsReport.xml java.lang.ClassNotFoundException: dori.jasper.engine.xml.JasperDesignFactory at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:183) at java.lang.ClassLoader.loadClass(ClassLoader.java:294) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281) at java.lang.ClassLoader.loadClass(ClassLoader.java:250) at org.apache.commons.digester.FactoryCreateRule.getFactory(FactoryCreateRule.java:373) at org.apache.commons.digester.FactoryCreateRule.begin(FactoryCreateRule.java:291) at org.apache.commons.digester.Digester.startElement(Digester.java:1237) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1514) at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:560) at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:342) at dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:96) at FontsApp.main(FontsApp.java:131) [ERROR] Digester - -Begin event threw exception <java.lang.ClassNotFoundException: dori.jasper.engine.xml.JasperDesignFactory> java.lang.ClassNotFoundException: dori.jasper.engine.xml.JasperDesignFactory at org.apache.commons.digester.Digester.createSAXException(Digester.java:2312) at org.apache.commons.digester.Digester.createSAXException(Digester.java:2332) at org.apache.commons.digester.Digester.startElement(Digester.java:1240) at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source) at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.commons.digester.Digester.parse(Digester.java:1514) at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:560) at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:342) at dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:96) at FontsApp.main(FontsApp.java:131) NESTED BY : dori.jasper.engine.JRException: Error at (4, 151: dori.jasper.engine.xml.JasperDesignFactory at dori.jasper.engine.xml.JRXmlLoader.loadXML(JRXmlLoader.java:564) at dori.jasper.engine.xml.JRXmlLoader.load(JRXmlLoader.java:342) at dori.jasper.engine.JasperCompileManager.compileReportToFile(JasperCompileManager.java:96) at FontsApp.main(FontsApp.java:131) Terminated with exit code 1
  15. By: Shawn Kuenzler - basti30 Incorporating Jasper in Applets only? 2002-10-13 15:44 Hi, I'm just reading over this tool so far but it looks like I could use it. Is there a way to use it with just applets? I don't have any XML or HTML with my program. Thanks, Shawn By: Tam Nguyen Anh - anhtam RE: Incorporating Jasper in Applets only? 2002-10-14 02:21 You just need a word processing program(notepad) to edit your own xml report-design file. Then, use this JR tool to generate the pdf report file. You can apply this tool to your application and applet too. By: Teodor Danciu - teodord RE: Incorporating Jasper in Applets only? 2002-10-14 12:33 Hi, Could you be more precise? What exactly are you trying to do? Thank you, Teodor By: Shawn Kuenzler - basti30 RE: Incorporating Jasper in Applets only? 2002-10-17 18:29 Anyone? By: Shawn Kuenzler - basti30 RE: Incorporating Jasper in Applets only? 2002-10-14 15:01 I'd be glad to explain further. I'm developing an information system (specifically a Reservation system) for my senior project. There is no implementation, I just have to demonstrate it. So I've created a program with several applets which I will run from BlueJ, the IDE I'm using. So rather than some Java Apps with their XML and HTML files incorporated in the project, mine only has applets and other classes. I have an Access database and I'm using JDBC to connect to it. Please let me know if you have any further questions. I appreciate your help and any details you can give me in order to put Jasper Reporting in my program. Thanks, Shawn By: Teodor Danciu - teodord RE: Incorporating Jasper in Applets only? 2002-10-18 12:50 Hi, I don't say it cannot be done. But first you have to be aware of all the restriction applets have, like security restictions and stuff. I'm not an expert in Java applets, but it seem to me that the difficulties you are going to encouter will be related to those applet restrictions and not to the JasperReports library itself. Try to create an applet that reads something from a file on your computer. After succeeding that, you'll be ready to use JasperReports in applets as you wish. Thank you, Teodor By: Shawn Kuenzler - basti30 RE: Incorporating Jasper in Applets only? 2002-10-19 08:40 Done. My program is already connected to an Access database through JDBC with no problems querying and updating. Can I get some instructions on how to start using JasperReports in my applets? Thanks! Shawn By: Teodor Danciu - teodord RE: Incorporating Jasper in Applets only? 2002-10-19 12:54 Hi, You've done what? I didn't say connecting to a database through JDBC would be a problem when working with applets. I said trying to read or write files on disk would pose some security problems. Have you passed them? I point you to do this because JasperReports works very much with files and if there's something that should go wrong, then this would be it. Thank you, Teodor By: Shawn Kuenzler - basti30 RE: Incorporating Jasper in Applets only? 2002-10-19 13:09 Since you didn't specify, I assumed "reading and writing files on disk" would include a database file. I'll have to expirement with it some. Perhaps this is the wrong tool for me. Again, if anyone has some instructions on where to begin installation of Jasper, I would greatly appreciate it. Thanks Teodor, Shawn
  16. By: Tzanko - tsanstef error when closing a document 2002-10-18 13:54 Hi Theodor, i got this strange error when exporting to PDF. It is strange because sometime the pdf gets generated sometimes not. I could not track what could cause that. java.lang.NullPointerException at com.lowagie.text.pdf.PdfArray.toPdf(PdfArray.java:134) at com.lowagie.text.pdf.PdfDictionary.toPdf(PdfDictionary.java:150) at com.lowagie.text.pdf.PdfDictionary.toPdf(PdfDictionary.java:150) at com.lowagie.text.pdf.PdfDictionary.toPdf(PdfDictionary.java:150) at com.lowagie.text.pdf.PdfIndirectObject.<init>(PdfIndirectObject.java: 134) at com.lowagie.text.pdf.PdfIndirectObject.<init>(PdfIndirectObject.java: 106) at com.lowagie.text.pdf.PdfWriter$PdfBody.add(PdfWriter.java:202) at com.lowagie.text.pdf.PdfWriter.close(PdfWriter.java:726) at com.lowagie.text.pdf.PdfDocument.close(PdfDocument.java:816) at com.lowagie.text.Document.close(Document.java:497) at dori.jasper.engine.export.JRPdfExporter.exportReportToStream(JRPdfExp orter.java:247) at dori.jasper.engine.export.JRPdfExporter.exportReport(JRPdfExporter.ja va:183) at dori.jasper.engine.JasperExportManager.exportReportToPdfFile(JasperEx portManager.java:135) at dori.jasper.engine.JasperRunManager.runReportToPdfFile(JasperRunManag er.java:240) at com.ansco.accounting.job.ReconcileReport.run(ReconcileReport.java:174 ) at java.lang.Thread.run(Thread.java:536)
  17. By: olivier bregeas - bregeras Fill a report 2002-10-18 01:21 Hi I have create an application wichi use differrent XML Report file to create PDF. Some of them have SQL query and other not. If I use the JasperFillManager (with fillReportToStream function), I got a NullPointer exception. Do I have to dettermine if the XML report file has an SQL query or not and to use FillManager or not. Or is it a bug. What I am excepting, is that the FillManager return an JasperPrint or outputStream fill with the PDF File (no dynamic filling of it). Thanks for your help. By: Teodor Danciu - teodord RE: Fill a report 2002-10-18 13:52 Hi, What version of JasperReports are you using? I think you won't be getting the null pointer exception if you would switch to the 0.4.2 version. If you want the engine to generate something even if there is no data in the data source, use the "whenNoDataType" attribute. I hope this helps. Teodor
  18. By: olivier bregeas - bregeras Warning message 2002-10-17 08:26 Hi I have the fallowing chain to create my report : JasperDesign design = JasperManager.loadXmlDesign(filename); JasperReport report = JasperManager.compileReport(design); JasperPrint print =JasperManager.fillReport( report, parameters, getConnection()); JasperManager.printReportToPdfStream(print, outputStream); Everything work good except I got the following message at this point : ***************************************************************** * WARNING: JRPrinterPDF class is now deprecated. * * Use JRPdfExporter class or JasperExportManager class instead. * ***************************************************************** How can I remove it. I use jasperReport 0.4.1 (0.4.2, has some problem with JRElement and JRGroup) By: Teodor Danciu - teodord RE: Warning message 2002-10-17 13:08 Hi, What exactly is the problem in 0.4.2 ? Thank you, Teodor By: Teodor Danciu - teodord RE: Warning message 2002-10-17 12:53 Hi, This is only a warning message and does not necessarily represent a problem these days. You are advised to give up using the JasperManager class and use the newer, more specialized manager classes like JasperCompileManager, JasperFillManager, JasperPrintManager or JasperExportManager. When generating PDF or HTML, use the JasperExportManager class, because maybe in the future, the JasperPrintManager class will deal only with printing. And maybe we shall remove the JasperManager class altogether. Good luck! Teodor By: olivier bregeas - bregeras RE: Warning message 2002-10-18 01:03 How do I load an XML File using the new Class (which manager do I use) Thanks By: Teodor Danciu - teodord RE: Warning message 2002-10-18 13:29 Hi, I don't know why do you need to load the XML report design manually, instead of directly compiling it. But for this kind of job you have to use the public static methods of the JRXmlLoader class. Or is it about loading already generated reports that have been exported to XML format? For this, you use the JRPrintXmlLoader. I hope this helps. Teodor By: olivier bregeas - bregeras RE: Warning message 2002-10-18 00:01 The problem is not with JasperReport itself, but with some application which use it. JasperDesign for example. The problem is with the JRElement and the function getPrintWhenGroupChanges() . In the 0.4.2 this function return a JRGroup, but JasperDesign expecta String. I think, the return type as been changed between 0.4.2 and 0.4.1. Maybe I am wrong By: Teodor Danciu - teodord RE: Warning message 2002-10-18 12:20 Hi, Yes, it changed. It was something I always wanted to do and finally I did it, since we are still in beta. Sorry! Teodor
  19. By: Elima Sugunan - elims binaries 2002-10-17 07:09 can i get binaries for jasper report
  20. By: shyam - shyamchk exceptions while using wizard 2002-09-23 18:27 Hi, I'm new to Jasper reports and jasper edit, when I tried to create a simple report using wizard in jasper edit, I'm getting the following exceptions can someone help me out here. thanking you in advance shyam [java] java.lang.NullPointerException [java] at dori.jasper.engine.xml.JRXmlWriter.writeBand(JRXmlWriter.java:565) [java] at dori.jasper.engine.xml.JRXmlWriter.writeReport(JRXmlWriter.java:284) [java] at dori.jasper.engine.xml.JRXmlWriter.writeReport(JRXmlWriter.java:73) [java] at dori.jasper.engine.xml.JRXmlWriter.writeReport(JRXmlWriter.java:85) [java] at org.efs.jasperedit.gui.wizards.report.ReportWizard.finish(ReportWizard.java:69) [java] at org.efs.jasperedit.gui.wizards.WizardDialog.actionPerformed(WizardDialog.java:99) [java] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450) [java] at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1504) [java] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378) [java] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250) [java] at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:216) [java] at java.awt.Component.processMouseEvent(Component.java:3715) [java] at java.awt.Component.processEvent(Component.java:3544) [java] at java.awt.Container.processEvent(Container.java:1164) [java] at java.awt.Component.dispatchEventImpl(Component.java:2593) [java] at java.awt.Container.dispatchEventImpl(Container.java:1213) [java] at java.awt.Component.dispatchEvent(Component.java:2497) [java] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451) [java] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216) [java] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125) [java] at java.awt.Container.dispatchEventImpl(Container.java:1200) [java] at java.awt.Window.dispatchEventImpl(Window.java:926) [java] at java.awt.Component.dispatchEvent(Component.java:2497) [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:339) [java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131) [java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98) [java] at java.awt.Dialog.show(Dialog.java:380) [java] at org.efs.jasperedit.gui.JasperEdit.actionPerformed(JasperEdit.java:213) [java] at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450) [java] at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1504) [java] at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378) [java] at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250) [java] at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:216) [java] at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231) [java] at java.awt.Component.processMouseEvent(Component.java:3715) [java] at java.awt.Component.processEvent(Component.java:3544) [java] at java.awt.Container.processEvent(Container.java:1164) [java] at java.awt.Component.dispatchEventImpl(Component.java:2593) [java] at java.awt.Container.dispatchEventImpl(Container.java:1213) [java] at java.awt.Component.dispatchEvent(Component.java:2497) [java] at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451) [java] at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216) [java] at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125) [java] at java.awt.Container.dispatchEventImpl(Container.java:1200) [java] at java.awt.Window.dispatchEventImpl(Window.java:926) [java] at java.awt.Component.dispatchEvent(Component.java:2497) [java] at java.awt.EventQueue.dispatchEvent(EventQueue.java:339) [java] at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131) [java] at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98) [java] at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) [java] at java.awt.EventDispatchThread.run(EventDispatchThread.java:85) By: Teodor Danciu - teodord RE: exceptions while using wizard 2002-10-15 14:27 Hi, I have fixed something that has to do with this problem in JasperReports. You have to check if the JasperEdit is also up to date to support the latest version. Thank you, Teodor
  21. By: Tiger - hntiger Ask API ? 2002-10-02 23:54 Hi, Could you tell me the difference between JRBasexxxx class and JRBasePrintxxxx class ? (more clearly: construction, task (responsibility)) Thank you Best regards
  22. By: Curtis Greg W - cgregjam How to pass parameter from a java application 2002-09-03 11:55 Can any one tell me how to pass parameter from a java application to jasper report or how to modify the select statement dynamically Thanks. By: Louis W. Lembcke - llembcke RE: How to pass parameter from a java application 2002-09-03 18:17 In your java program, you can execute (aka fill) the report using the dori.jasper.engine.JasperFillManager. This class has several static convenience methods to facilitate executing the report. These methods take, among other things, a Map object. The Map object is used to pass parameters into the report where the Map entry key is the String name of the parameter and the corresponding Map entry value is the object containing the value. The value object must be of the same type as what you declared in your <param name="..." class="..."/> tag in your report definition. You can modify the SQL statement dynamically by using those parameter values similar to normal substituted values in any prepared query. The syntax to reference a parameter value is $P{param-name}. For example... In the java of the report launcher/driver... ... java.sql.Connection dbConn = ... java.util.Map params = new java.util.HashMap(); params.put( "skippy", new Integer(42) ); JasperPrint prnt = JasperFillManager.fillReport( reportFilePath, params, dbConn ); ... In the report definition... ... <parameter name="skippy" class="java.lang.Integer" /> ... <queryString><![CDATA[ SELECT * FROM someTable WHERE someColumn = $P{skippy} ]]></queryString> Of course, your report launcher/driver can get the values for the parameters from a variety of sources: command line arguments, system properties, properties file, other xml files, database queries, jndi lookups, hard-coded, etc. Study the tutorial write-up and sample report definitions for more information. By: Curtis Greg W - cgregjam RE: How to pass parameter from a java application 2002-09-04 05:14 Thanks.
  23. By: Maxime Levesque - maxime_levesque is JasperReport performant ? 2002-08-29 07:37 Has anyone conducted load tests with concurent usage ? By: Teodor Danciu - teodord RE: is JasperReport performant ? 2002-08-29 07:55 Hi, They seem to know better: http://sourceforge.net/forum/message.php?msg_id=1572136 Thank you, Teodor
  24. By: Maxime Levesque - maxime_levesque dori.jasper.engine.JasperReport thread safe? 2002-08-29 07:35 If it is I will use a single instance of every reports to serve every one, otherwise I will have to clone it before use... It seems like it would be a good sense for it to be a read only class, but the docs don't say..... By: Teodor Danciu - teodord RE: dori.jasper.engine.JasperReport thread safe? 2002-08-29 07:47 Hi, Yes it is. You can reuse your JasperReports objects. As you can see from the docs, the JasperReport objects are read-only. They only have getXXX() methods and no setXXX(). Thank you, Teodor
  25. By: Brian Deffenbaugh - bdeffenbaugh SQL 2002-07-25 06:35 Is it possible to design the XML file to accept the SQL Statement as a paremeter? I have found examples passing in Titles and other information, but am unable to use the $P as a value for the <querystring> tag. By: Teodor Danciu - teodord RE: SQL 2002-08-05 00:46 Hi, No, this is not possible. But I think what you need is to execute the SQL query outside JasperReports and pass the ResultSet object to the report filling methods. This is perfectly feasible. Check the JasperFillManager class to see all the methods that can be used to fill a report and you will find some that receive a JRDataSource object as a parameter. You can wrap your ResultSet object into a JRDataSource object using the JRResultSetDataSource class. Good luck! Teodor
×
×
  • Create New...