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

DeanoUK

Members
  • Posts

    4
  • Joined

  • Last visited

DeanoUK'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, We've just moved servers and we're experiencing a very odd problem when trying to view a JasperReports compiled PDF. No error appears to be thrown, but we do see this in the Linux logs: Jul 7 16:28:50 ws4 kernel: martian source 10.0.0.41 from 10.0.0.41, on dev eth1 Jul 7 16:28:50 ws4 kernel: ll header: 00:1x:0x:6x:4x:5x:00:90:7x:3x:ax:fx:0x:00 Jul 7 16:28:53 ws4 kernel: martian source 10.0.0.41 from 10.0.0.41, on dev eth1 Jul 7 16:28:53 ws4 kernel: ll header: 00:1x:0x:6x:4x:5x:00:90:7x:3x:ax:fx:0x:00 (Mac address masked) Anyone got any suggestions? I'm sure I remember installing some libs last time...
  2. When printing using the JExcelApiExporter to format to an XLS spreadsheet the embedded JFreeChart, which is added as an image into the report, is of a vastly inferior quality to that of the PDF output. Why is this and how can I get it up to the quality of the PDF output? I've noticed via a search of this topic in the forums that it gets asked a lot, but hasn't been answered - and this is an essential part of what I need to do. Any help would be appreciated.
  3. Ah... the secret is, to create a parameter within ireport, and then use that, instead of trying to get from that params map. i.e. Code: <parameter name="reportPieChart1" isForPrompting="false" class="java.awt.Image"/> <!-- .... etc ... --> <imageExpression class="java.awt.Image"><![CDATA[$P{reportPieChart1}]]></imageExpression>
  4. Hi all. How do I go about passing an image as a parameter? E.g.: Code: Image pieChartImage = getImage(); // Some java.awt.Image object Map<String, Object> parameters = new HashMap<String, Object>(); parameters.put("reportPieChart1", pieChartImage); My jrxml is like so: Code:[code] <imageExpression class="java.awt.Image"><![CDATA[$P{REPORT_PARAMETERS_MAP}$P{REPORT_PARAMETERS_MAP}.get( "reportPieChart1" )]]></imageExpression> Which produces this: Code:[code] [07 Sep 2007 10:48:33] INFO com.opensymphony.xwork2.validator.ActionValidatorMan agerFactory - Detected AnnotationActionValidatorManager, initializing it... [07 Sep 2007 10:48:34] ERROR STDERR - java.lang.NoSuchMethodError: org.eclipse. jdt.internal.compiler.CompilationResult.getErrors()[Lorg/eclipse/jdt/core/compil er/IProblem; [07 Sep 2007 10:48:34] ERROR STDERR - at net.sf.jasperreports.engine.design.JR JdtCompiler$2.acceptResult(JRJdtCompiler.java:418) [07 Sep 2007 10:48:34] ERROR STDERR - at org.eclipse.jdt.internal.compiler.Com piler.compile(Compiler.java:417) [07 Sep 2007 10:48:34] ERROR STDERR - at net.sf.jasperreports.engine.design.JR JdtCompiler.compileUnits(JRJdtCompiler.java:191) [07 Sep 2007 10:48:34] ERROR STDERR - at net.sf.jasperreports.engine.design.JR AbstractCompiler.compileReport(JRAbstractCompiler.java:190) etc
×
×
  • Create New...