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

rkozlowski

Members
  • Posts

    16
  • Joined

  • Last visited

rkozlowski's Achievements

Apprentice

Apprentice (3/14)

  • First Post Rare
  • Collaborator Rare
  • Conversation Starter Rare
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

  1. Greetings! May I suggest that you go to jfree.org and ask this question in their forum? The reason is that Jasper Reports uses the jfree chart to generate their charts. Label size should be easy to manipulate I think you might need to look for a class in the jfreechart jar that will do this for you, in any case there is documentation provided on jfree.org that describes in depth how to do this and also provides examples that you can download.
  2. Greetings! We have had to adopt special "true type fonts" that support various characters that are unavailable elsewhere. 1. Find out what true type fonts that your Brazilian characters are found in and then add them to your project. Chances are strong that jasper will recognize the characters if they are a part of the true type font. The file extension that you can look for is .ttf
  3. Solution-Reinstall Tomcat and then go into Catalinalocalhost and make sure docBase is correct. Also go into Eclipse and make sure that Tomcat settings are correct. My problem was caused by copying all of my coworker's jars into my Tomcat commonlib and overwriting the jars that were already there.
  4. Solution-Reinstall Tomcat and then go into Catalinalocalhost and make sure docBase is correct. Also go into Eclipse and make sure that Tomcat settings are correct. My problem was caused by copying all of my coworker's jars into my Tomcat commonlib and overwriting the jars that were already there.
  5. I just noticed your second question. The chart will only output the information that you give it. My suggestion is to write a query that will limit the amount of data that you would give it. SELECT * FROM (SELECT * FROM TABLE_NAME) WHERE ROWNUM < 10;
  6. According to the documentation that comes with jfreechart which is used by iReport you may be able to dynamically control the bar width by using the maximumBarWidth attribute, you can use the methods of setMaximumBarWidth and getMaximumBarWidth. I have created an attachment which includes the pdf that comes with JFreeCharts for your perusal. I do love JFreeChart, I just wish that I could understand JasperReports as well.
  7. I have also created an attachment with the jar included. Post Edited by Rachel Kozlowski at 04/09/09 19:59
  8. when you get to the site click on download and then click on save.
  9. Please download the commons-javaflow-20060411.jar at the following link: http://dev.openmrs.org/browser/openmrs-modules/jasperreport/lib/commons-javaflow/commons-javaflow-20060411.jar?rev=1777
  10. According to the documentation this is what you need for commons: Jakarta Commons BeanUtils Component (version 1.7 or later) http://jakarta.apache.org/commons/beanutils/Jakarta Commons Collections Component (version 2.1 or later) http://jakarta.apache.org/commons/collections/Jakarta Commons Javaflow (Sandbox version) http://jakarta.apache.org/commons/sandbox/javaflow/Jakarta Commons Logging Component (version 1.0 or later) http://jakarta.apache.org/commons/logging/
  11. You need the commons-javaflow.jar, I am not sure but, I believe that you would get this through apache?
  12. The message says that the class with the very long name extends JREvaluator -- which must be an abstract class because it has an abstract method (or it inherits but does not implement an interface method) named customizedInit() that takes three Map arguments. Therefore either the class with the very long name must also be marked 'abstract", or it must implement that method and I cannot figure out how to fix this error. The line of code that it is occuring on is: JasperReport reportObj = JasperCompileManager.compileReport(reportDesignObj); net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file: 1. The type Lowest32Percent32of32Patients32with32Hemoglobin3210460451046932g47dL_1239290426891_874228 must implement the inherited abstract method JREvaluator.customizedInit(Map, Map, Map) public class Lowest32Percent32of32Patients32with32Hemoglobin3210460451046932g47dL_1239290426891_874228 extends JREvaluator <---------------------------------------------------------------------------------------> 2. The method get(String) is undefined for the type Map parameter_REPORT_RESOURCE_BUNDLE = (JRFillParameter)pm.get("REPORT_RESOURCE_BUNDLE"); Code: public static JasperPrint compileNFillReportData(JasperDesign reportDesignObj, HashMap<String, Object> reportParametersMap) { JasperPrint reportPrintObj = null; try { int nWidth = 0; if (reportDesignObj.getPageHeight() > reportDesignObj.getPageWidth()){ nWidth = reportDesignObj.getPageHeight() + 5; reportDesignObj.setPageWidth(nWidth); } //Compile the report JasperReport reportObj = JasperCompileManager.compileReport(reportDesignObj); //Fill the report reportPrintObj = JasperFillManager.fillReport(reportObj, reportParametersMap, new JREmptyDataSource()); } catch (Exception e) { logger.error("There was an error trying to compile and fill the report ...", e); } //Return the JasperPrint object return reportPrintObj; }
  13. Please look at the jars I have listed. Are they correct or do I need different jasper compilers to go with my jasper report jars? jasperreports-3.5.0.jar jasperreports-3.5.0-javaflow.jar jasper-compiler-jdt-5.5.12.jar jasper-compiler-5.5.12.jar
  14. I could not find a download for jasperreports-2.0.1.jar from the Internet any more and therefore, I could not find the jdt associated with it, so I downloaded jasperreports-3.5.0.jar and jasperreports-3.5.0-javaflow.jar This is my classpath <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="src"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> <classpathentry kind="lib" path="C:/SOFTWARE/EasyEclipse1.2.1/jre/lib/tools.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/struts-el.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/catalina-root.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/classes12.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/classes12dms.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/commons-beanutils.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/commons-collections-3.1.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/commons-collections.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/commons-dbcp-1.2.2.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/commons-digester.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/commons-el.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/commons-fileupload-1.1.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/commons-io-1.3.2.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/commons-javaflow.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/commons-lang.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/commons-logging-1.1.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/commons-logging.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/commons-logging-adapters-1.1.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/commons-logging-api-1.1.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/commons-pool-1.3.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/itext-2.0.0.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/jasper-compiler.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/jasper-compiler-jdt.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/jasper-runtime.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/jcommon-1.0.8.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/jcommon-xml-1.0.8.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/jfreechart-1.0.3.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/jsp-api.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/jstl.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/junit.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/log4j-1.2.14.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/msql.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/mSync.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/msyncCom.1.1.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/mysql-connector-java-5.0.5-bin.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/naming-factory.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/naming-factory-dbcp.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/naming-resources.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/ocrs12.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/ojdbc14.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/olite40.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/olitejdbc40.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/olitejdbcpj40.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/poi-2.0-final-20040126.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/poi-2.5.1.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/poi-2.5.1-final-20040804.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/poi-contrib-2.5.1-final-20040804.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/poi-scratchpad-2.5.1-final-20040804.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/portlet-api.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/rowset.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/servlet-api.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/spring-beans.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/spring-context.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/spring-core.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/spring-dao.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/spring-jdbc.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/spring-web.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/spring-webmvc.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/standard.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/struts.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/jasperreports-3.5.0.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/jasperreports-3.5.0-javaflow.jar"/> <classpathentry kind="output" path="build/WEB-INF/classes"/> </classpath> I am no longer getting the previous error, but now I am getting a different error: net.sf.jasperreports.engine.JRException : Errors were encountered when compiling report expressions class file:JRAbstractCompiler.java:195)JasperCompileManager.java:219)ReportingManager.java:1292)ReportServiceImpl.java:2083)ReportingController.java:253)SimpleFormController.java:214)AbstractFormController.java:559)SimpleFormController.java:198)SimpleFormController.java:175)AbstractFormController.java:323)AbstractFormController.java:263)AbstractController.java:153)SimpleControllerHandlerAdapter.java:45)DispatcherServlet.java:820)DispatcherServlet.java:755)FrameworkServlet.java:396)FrameworkServlet.java:350)HttpServlet.java:627)HttpServlet.java:729)ApplicationFilterChain.java:252)ApplicationFilterChain.java:173)StandardWrapperValve.java:213)StandardContextValve.java:178)StandardHostValve.java:126)ErrorReportValve.java:105)StandardEngineValve.java:107)CoyoteAdapter.java:148)Http11Processor.java:869)Http11BaseProtocol.java:664)PoolTcpEndpoint.java:527)LeaderFollowerWorkerThread.java:80)ThreadPool.java:684) any thoughts? 1. The type Anemia32Outcomes32Summary32Report3240Facility32Level41_1239213433849_452235 must implement the inherited abstract method JREvaluator.customizedInit(Map, Map, Map) public class Anemia32Outcomes32Summary32Report3240Facility32Level41_1239213433849_452235 extends JREvaluator <-------------------------------------------------------------------------> 2. The method get(String) is undefined for the type Map parameter_REPORT_RESOURCE_BUNDLE = (JRFillParameter)pm.get("REPORT_RESOURCE_BUNDLE"); <-> 3. The method get(String) is undefined for the type Map parameter_JASPER_REPORT = (JRFillParameter)pm.get("JASPER_REPORT"); <-> 4. The method get(String) is undefined for the type Map parameter_REPORT_CLASS_LOADER = (JRFillParameter)pm.get("REPORT_CLASS_LOADER"); <-> 5. The method get(String) is undefined for the type Map parameter_REPORT_FORMAT_FACTORY = (JRFillParameter)pm.get("REPORT_FORMAT_FACTORY"); <-> 6. The method get(String) is undefined for the type Map parameter_REPORT_TIME_ZONE = (JRFillParameter)pm.get("REPORT_TIME_ZONE"); <-> 7. The method get(String) is undefined for the type Map parameter_REPORT_DATA_SOURCE = (JRFillParameter)pm.get("REPORT_DATA_SOURCE"); <-> 8. The method get(String) is undefined for the type Map parameter_REPORT_LOCALE = (JRFillParameter)pm.get("REPORT_LOCALE"); <-> 9. The method get(String) is undefined for the type Map parameter_REPORT_FILE_RESOLVER = (JRFillParameter)pm.get("REPORT_FILE_RESOLVER"); <-> 10. The method get(String) is undefined for the type Map parameter_REPORT_URL_HANDLER_FACTORY = (JRFillParameter)pm.get("REPORT_URL_HANDLER_FACTORY"); <-> 11. The method get(String) is undefined for the type Map parameter_REPORT_PARAMETERS_MAP = (JRFillParameter)pm.get("REPORT_PARAMETERS_MAP"); <-> 12. The method get(String) is undefined for the type Map parameter_REPORT_CONNECTION = (JRFillParameter)pm.get("REPORT_CONNECTION"); <-> 13. The method get(String) is undefined for the type Map parameter_IS_IGNORE_PAGINATION = (JRFillParameter)pm.get("IS_IGNORE_PAGINATION"); <-> 14. The method get(String) is undefined for the type Map parameter_REPORT_TEMPLATES = (JRFillParameter)pm.get("REPORT_TEMPLATES"); <-> 15. The method get(String) is undefined for the type Map parameter_REPORT_VIRTUALIZER = (JRFillParameter)pm.get("REPORT_VIRTUALIZER"); <-> 16. The method get(String) is undefined for the type Map parameter_REPORT_SCRIPTLET = (JRFillParameter)pm.get("REPORT_SCRIPTLET"); <-> 17. The method get(String) is undefined for the type Map parameter_REPORT_MAX_COUNT = (JRFillParameter)pm.get("REPORT_MAX_COUNT"); <-> 18. The method get(String) is undefined for the type Map variable_PAGE_NUMBER = (JRFillVariable)vm.get("PAGE_NUMBER"); <-> 19. The method get(String) is undefined for the type Map variable_COLUMN_NUMBER = (JRFillVariable)vm.get("COLUMN_NUMBER"); <-> 20. The method get(String) is undefined for the type Map variable_REPORT_COUNT = (JRFillVariable)vm.get("REPORT_COUNT"); <-> 21. The method get(String) is undefined for the type Map variable_PAGE_COUNT = (JRFillVariable)vm.get("PAGE_COUNT"); <-> 22. The method get(String) is undefined for the type Map variable_COLUMN_COUNT = (JRFillVariable)vm.get("COLUMN_COUNT"); <-> 23. The method get(String) is undefined for the type Map variable_singleGridTitle_COUNT = (JRFillVariable)vm.get("singleGridTitle_COUNT"); <-> 24. The method get(String) is undefined for the type Map variable_oneTable_COUNT = (JRFillVariable)vm.get("oneTable_COUNT"); <-> 24 errors at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport( at net.sf.jasperreports.engine.JasperCompileManager.compileReport( at com.amgen.reportingsuite.util.reports.ReportingManager.compileNFillReportData( at com.amgen.reportingsuite.service.impl.ReportServiceImpl.generatePreFormattedReport( at com.amgen.reportingsuite.web.ReportingController.referenceData( at org.springframework.web.servlet.mvc.SimpleFormController.referenceData( at org.springframework.web.servlet.mvc.AbstractFormController.showForm( at org.springframework.web.servlet.mvc.SimpleFormController.showForm( at org.springframework.web.servlet.mvc.SimpleFormController.showForm( at org.springframework.web.servlet.mvc.AbstractFormController.showNewForm( at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal( at org.springframework.web.servlet.mvc.AbstractController.handleRequest( at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle( at org.springframework.web.servlet.DispatcherServlet.doDispatch( at org.springframework.web.servlet.DispatcherServlet.doService( at org.springframework.web.servlet.FrameworkServlet.processRequest( at org.springframework.web.servlet.FrameworkServlet.doGet( at javax.servlet.http.HttpServlet.service( at javax.servlet.http.HttpServlet.service( at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( at org.apache.catalina.core.ApplicationFilterChain.doFilter( at org.apache.catalina.core.StandardWrapperValve.invoke( at org.apache.catalina.core.StandardContextValve.invoke( at org.apache.catalina.core.StandardHostValve.invoke( at org.apache.catalina.valves.ErrorReportValve.invoke( at org.apache.catalina.core.StandardEngineValve.invoke( at org.apache.catalina.connector.CoyoteAdapter.service( at org.apache.coyote.http11.Http11Processor.process( at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection( at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket( at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt( at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run( at java.lang.Thread.run(Unknown Source)
  15. Our folks use more than one poi jar. Take a look at the jars we use. You might need to add these. <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/poi-2.0-final-20040126.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/poi-2.5.1.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/poi-2.5.1-final-20040804.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/poi-contrib-2.5.1-final-20040804.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/poi-scratchpad-2.5.1-final-20040804.jar"/> <classpathentry kind="lib" path="C:/SOFTWARE/Tomcat5.5/common/lib/itext-2.0.0.jar"/>
×
×
  • Create New...