bojan.subotic
-
Posts
3 -
Joined
-
Last visited
Content Type
Profiles
Forum
Events
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Downloads
Posts posted by bojan.subotic
-
-
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.
java.lang.NoSuchMethodError: org.apache.poi.hssf.usermodel.HSSFCellStyle.setShrinkToFit(Z)V
in Products
Posted
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