Uploaded image for project: 'Reporting Module'
  1. Reporting Module
  2. REPORT-146

Default Xls Renderer for CohortDetailRenderer never worked for me

    XMLWordPrintable

    Details

    • Complexity:
      Low

      Description

      Typically I get a "The workbook already contains a sheet of this name" exception. I'm unsure what it is related to, but I have usually a HTML template that is associated to a Report design with a CohortDetailRenderer. I use this to provide printouts for breakdown of the indicators. I guess the xls should be another default output format for these patient lists - if they would work.

      ERROR - LoggingAdvice.invoke(111) |2011-01-30 10:13:52,461| An error occurred while executing this method. Error message: The workbook already contains a sheet of this name
      java.lang.IllegalArgumentException: The workbook already contains a sheet of this name
      at org.apache.poi.hssf.usermodel.HSSFWorkbook.createSheet(HSSFWorkbook.java:742)
      at org.openmrs.module.reporting.report.renderer.CohortDetailReportRenderer.render(CohortDetailReportRenderer.java:181)
      at org.openmrs.module.reporting.report.service.ReportServiceImpl.runReport(ReportServiceImpl.java:248)
      at sun.reflect.GeneratedMethodAccessor1363.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)

        Attachments

          Activity

            People

            Assignee:
            mseaton Mike Seaton
            Reporter:
            cneumann Christian Neumann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: