Jump to content
JasperReports Library 7.0 is now available ×

manulachathurika

Members
  • Posts

    7
  • Joined

  • Last visited

manulachathurika's Achievements

  1. Hi All, After I adding "jackson-core-2.6.2.jar" to iReport classpath the above runtime exception get solved. Thanks !
  2. Hi All, I have used json datasource as my datasource in my report. When I run the report I got the following exception. Could anyone help me to resolve this isse. Is there any jar missing my iReport ? Error filling print... java.lang.NoClassDefFoundError: org/codehaus/jackson/JsonNode java.lang.ClassNotFoundException: org.codehaus.jackson.JsonNode java.lang.NoClassDefFoundError: org/codehaus/jackson/JsonNode at com.jaspersoft.jrx.json.JsonDataSourceConnection.getJRDataSource(JsonDataSourceConnection.java:199) at com.jaspersoft.ireport.designer.IReportConnection.getJRDataSource(IReportConnection.java:71) at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:927) at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) Caused by: java.lang.ClassNotFoundException: org.codehaus.jackson.JsonNode at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at org.netbeans.ProxyClassLoader.loadClass(ProxyClassLoader.java:252) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) Thanks ! Manula Thantriwatte
  3. You Can use virtualizer for this. Below is the sample. public InputStream xlsReportGen(String xml, String reportTemplate,String reportPath, Map<String, Object> reportParams)throws Exception { ByteArrayOutputStream _out = new ByteArrayOutputStream();JRDataSource datasource = new JRXmlDataSource(new File(xml));JasperReport jasperReport = (JasperReport) JRLoader.loadObjectFromFile(reportPath + reportTemplate); // creating the virtualizerJRSwapFile swapFile = new JRSwapFile(reportPath, 4096, 4096);JRAbstractLRUVirtualizer virtualizer = new JRSwapFileVirtualizer(5000,swapFile, true);reportParams.put(JRParameter.REPORT_VIRTUALIZER, virtualizer); JasperPrint _print = JasperFillManager.fillReport(jasperReport,reportParams, datasource); if (virtualizer != null) {virtualizer.cleanup();} JRXlsExporter exporter = new JRXlsExporter();exporter.setParameter(JRExporterParameter.JASPER_PRINT, _print);exporter.setParameter(JRExporterParameter.OUTPUT_STREAM, _out);exporter.setParameter(JRXlsExporterParameter.IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS,Boolean.TRUE);exporter.exportReport(); return new ByteArrayInputStream(_out.toByteArray());}
  4. Hi, I'm able to solve the problem. What I did was, I used report groups. For this scenario I used two report groups. One for the RSM and another one for the ASM. Also I repoved print repeated values property for the RSM name and ASM name. Thanks !
  5. Hi All, I'm creating report template using iReport 5.6.0. I'm using datasource xml to fill up the data. Following is the template with I want. For this template I have create three sub reports. One for the RSM, one for the ASM and one for the PFC and other details. But when I run the report the data didn't group correctly. Please see the following output. What I want is, under RSM name "Manula", ASM names should be "Thantriwatte" and "Chathurika". After that I need to show the other RSM name like the first screen shot. Is this feature avilable in iReport. If yes how can I do that. Thanks ! Manula Thantriwatte
×
×
  • Create New...