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

pinnau

Members
  • Posts

    3
  • Joined

  • Last visited

pinnau's Achievements

Newbie

Newbie (1/14)

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

Recent Badges

0

Reputation

  1. Is there a way to calculate increase/decrease between columngroups in a jasperrepors crosstab? Here is an example: years as columngroup and I need increase to previous year in percentage for crosstabcells and some row totals. I know how to implement percentage of grand total or group totals but that is not what I need. Thanks Peter
  2. Everything works fine on my developer system since there seem to be all fonts installed on that Windows box. The customer runs a SuSE Linux Enterprise server and I ran into the discussed problem after upgrading to 3.6.2. The quick hack with net.sf.jasperreports.awt.ignore.missing.font=true succeeded but I am interested in a real solution because I have space problems due to missing fonts. I packed a JAR with Arial TTFs and also tried the jar with the DejaVu font from sourceforge. Unfortunately I get an exception when one of the font jars is within the classpath: javax.ejb.EJBException: java.lang.RuntimeException: java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser; nested exception is: java.lang.RuntimeException: java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser java.lang.RuntimeException: java.lang.NoClassDefFoundError: Could not initialize class net.sf.jasperreports.engine.util.JRStyledTextParser at org.jboss.ejb3.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:174) at org.jboss.ejb3.interceptor.EJB3InterceptorsInterceptor.invoke(EJB3InterceptorsInterceptor.java:63) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) at org.jboss.ejb3.entity.TransactionScopedEntityManagerInterceptor.invoke(TransactionScopedEntityManagerInterceptor.java:54) at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101) Without the font jars everything works fine. I read this indicates that different library versions are used. I did a grep in my jboss installation but there is version 3.6.2 installed only.
  3. Is there any progress concerning this issue? I have exactly the same problem. As a workaround I implemented an own MarkupProcessor. I use the <style> pattern attribute for the precision formatting and the <textElement> markup attribute to use an additional MarkupProcessor. The processor just looks for a starting "-" and surrounds the value with <font color="red"></font>. Works perfect. Maybe someone will find this useful. Code:<textField> <reportElement x="0" y="0" width="45" height="15" style="summe"/> <textElement markup="sc" /> <textFieldExpression class="java.math.BigDecimal">$V{IST_ERLOS</textFieldExpression></textField>public class BigDecimalMarkupFactory implements MarkupProcessorFactory { @Override public MarkupProcessor createMarkupProcessor() { return new MarkupProcessor() { @Override public String convert(String arg0) { if (arg0 != null && arg0.startsWith("-")) return "<font color=\"red\">" + arg0 + "</font>"; return arg0; } }; }}
×
×
  • Create New...