Jump to content
Changes to the Jaspersoft community edition download ×


  • Posts

  • Joined

  • Last visited

nmilasinovic's Achievements


Apprentice (3/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges



  1. Hello, I created jasper report and it runs perfectly on jasperserver, also export is fine to XLS pr XLSX from jasperserver. Problem is when i call jasperreports REST server API and export report to XLS or XLSX using rest API. I noticed same is with report in PDF format. I got report where in every new page rowGroups are repeated, i upload attachment how it looks. Just to be clear, report is good in all formats when i run and export it using jasperserver directly. Is there some special property i need to set when calling jasperserver rest api, in order to get valid exported report? Any help will be appreciated, as i am struggling with this problem for a while.
  2. Hello, I created main report with subreport in detail section. In main report i have query that returns 15 rows and subreport is called 15 times with different parameter. All that is working just fine, now i need to place each subreport to be on separate excel sheet when exporting report to excel. Any idea how to achieve this? I tried with net.sf.jasperreports.export.xls.break.before.row in static element but where to place that element? If i place it in detail section of main subreport, after subreport element i got more than 15 sheets, some of them are empty.
  3. Hello, I am using jasper reports crosstab report element. So far i managed to define row groups, column groups etc. However i am struggling with merging multiple crosstabCells (these are the regular detail cells, with no rowTotalGroup or columnTotalGroup attribute declarations within their body) into one cell horizontally. Here is example what i have now: static text | static text | static text nothing is displayed for total, sum dosn't make sense in this case 3 | 6 | 1 | 10 (total cell) This is what i need to achieve: static text (merged crosstabCells in one cell) 3 | 6 | 1 | 10 (total cell) this row shouldn't be merged Is there any idea how to achieve this?
  4. Hello, I am trying to migrate from Jasperreports 6.2.1 to 6.7.0. I am getting exception: Handler dispatch failed; nested exception is java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParserboth on Windows an Linux Wildfly server 11. On Linux server is run with ‑Djava.awt.headless=true option but without success. Can someone help me regarding this?
  5. I tried to use FileRepositoryService in this way: SimpleJasperReportsContext context = new SimpleJasperReportsContext(); FileRepositoryService fileRepository = new FileRepositoryService(context, "g:/usr/local/reports/", false); context.setExtensions(RepositoryService.class, Collections.singletonList(fileRepository)); context.setExtensions(PersistenceServiceFactory.class, Collections.singletonList(FileRepositoryPersistenceServiceFactory.getInstance())); and finally: jasperPrint = JasperFillManager.getInstance(context).fillReport(jasperReport, allReportParameters, connection); However i got exception for subreports that .jasper file with relative path under the "g:/usr/local/reports/" cannot be found: net.sf.jasperreports.engine.JRException: Resource not found at: temp/file.jasper I checked and file file.jasper is in g:/usr/local/reports/temp/file.jasper
  6. Hello, I am trying to migrate from JasperReports library version 4.5.1 to version 6.2.1. As i can see, JRResourcesUtil.setThreadFileResolver(fileResolver) method is deprecated in 6.2.1 and not working at all. This way i added to classpath all folders where all my .jrxml files are stored and reports and subreports worked nice in version 4.5.1. However that is not case in the version 6.2.1. What i need to use in Jasper Reports version 6.2.1 to define classpath of all .jrxml files, so i can use relative paths for subreports.
  7. Hi Bojan, I am using Jasper Reports API in web application, not JRS. Some methods are now removed regarding importing and setting parameters to .jrxml files.
  8. Hello, I need to migrate from jasper reports 4.5.1 to 6. There is many already created and working jrxml reports. However it is not possible now to load it to JasperReport object using loadObjectFromLocation(String) (method not exists anymore) , and then set parameters and generate report. What is now in jasper 6+ best way to load jrxml files from location, point is that all old jrxml files should work without change. Thanks in advance.
  9. Hello, I am using JasperReports to generate PDF reports, using one master queryString, and two additional subreports (every subreport generates new query). I faced performance issue, regarding to number of queries which are executed, it takes too long time to all queries be executed. Is there any way to use subreports (i need this for isolating common layout) but use master query report data for filling up subreports with data. I want to avoid somehow generating query for each subreport.
  • Create New...