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

bojan.subotic

Members
  • Posts

    3
  • Joined

  • Last visited

bojan.subotic's Achievements

Rookie

Rookie (2/14)

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

Recent Badges

0

Reputation

  1. Hi, Up until jasperreports 6.0.0 everything was just fine and then it started to throw exception: "java.lang.NoSuchMethodError: org.apache.poi.hssf.usermodel.HSSFCellStyle.setShrinkToFit(Z)V" when we tried to export jasper as xls file. We have a simple code that exports jsprerreport as xls file in a stream. What went wrong? public byte[] renderXls(JasperPrint print, boolean demo) throws Exception { byte[] bytes = null; try { ByteArrayOutputStream stream = new ByteArrayOutputStream(); JRXlsExporter exporter = new JRXlsExporter(); exporter.setExporterInput(new SimpleExporterInput(print)); exporter.setExporterOutput(new SimpleOutputStreamExporterOutput( stream)); if (demo) // Demo verzija { SimpleXlsxReportConfiguration sxrc = new SimpleXlsxReportConfiguration(); sxrc.setEndPageIndex(0); exporter.setConfiguration(sxrc); } exporter.exportReport(); bytes = stream.toByteArray(); } catch (Exception e) { throw new Exception(e.getMessage()); } return bytes; } Thanks. Best regards. Bojan
  2. Hi, can someone please help me with this one. I've tried to create a jasper report with chart and it renders on and shows fine when rendering to pdf. BUT, when I use pdf/a it gives me "Transparency is not allowed: /ca = 0.0" error. I've tried setting every color that can be set in chart to solid color 255 alpha but it didn't work. Does anyone know what am I doing wrong and how to render chart in pdf/a? Thank you.
×
×
  • Create New...