Jump to content
Changes to the Jaspersoft community edition download ×

abtrapp

Members
  • Posts

    12
  • 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

Everything posted by abtrapp

  1. Not really an option on app servers and different environments /tools/fckeditor/editor/images/smiley/msn/sad_smile.gif
  2. Hi! Is there really no way to use style templates without absolute path names or setting up a web server for every customer??? the given code is ignored completeley without any error/warning. If I copy the style... tag to the report template it is working without any problem. Same when I use the absolute path (which is different on Linux / OS X / Windows, .. machines). So this is definitively NOT working with resources??? Thanks in advance! Regards, Anton Code: Post Edited by abtrapp at 06/13/2011 05:47
  3. As I said, different resetTypes do not change the behaviour. This report is a "little" complicated so some fields are filled from Java, this is the only solution I have found to avoid the same calculation running for every row (put the calculation in the field). But with that solution I have to calculate almost everything twice (for the field and for the summary) which is ugly. But as soon as I put the calculation into a variable it is evaluated every row, resetType does not change anything for me. My guess was, that a "first" on a group will only evaluate once in a group (which is sufficient and would be exactly what I need, but the first of the group is called for every row in the group).
  4. The simplified example code. The Calculator.calculate() can be a Java function which returns 123.45 as BigDecimal and prints a System.out.println("-->"); Result: whatever I try with the evaluation in the textfield and the variable (first / reset at group, ...) -> the Java function is called for every record. Bug, featrue or my error? tnx! Code:<variable name="testVariable" class="java.math.BigDecimal" resetType="None"> <variableExpression> <![CDATA[new com.mycompany.Calculator().calculate()]]> </variableExpression></variable><... group ... group header ... band> <textField evaluationTime="Group" evaluationGroup="ISINCCGroup" isBlankWhenNull="true"> <reportElement x="188" y="0" width="30" height="10" isRemoveLineWhenBlank="true"/> <textFieldExpression class="java.math.BigDecimal"><![CDATA[$V{testVariable}]]></textFieldExpression> </textField>
  5. Thank you for your reply! The only problem is: this are text fields. I know them (and the evaluation expression). I am using a variable there (for example $V{sample}. Even if I have the field in the group header and I set the evaluation time to group the "sample" variable will be calculated in every row of the dataset (I am using a call to a javascript function to set the variable. I tried to calculate the "first" value, set the reset group to the group - but the variable is still evaluated at every row :( I can see that as I am logging the calls of the Java function...
  6. Hi! Variables are evaluated at every row, correct? Is there a way to change that (for example every group X? Is there a documentation/book anywhere where not only the absolute basics are shown? I searched the web, bought and read some books, but nothing... Tnx, Anton
  7. Hi there! Is there any way to generate Java code for a specific VM? The target option is completely ignored by the plugin. <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>jasperreports-maven-plugin</artifactId> <executions> <execution> <goals> <goal>compile-reports</goal> </goals> <configuration> <target>1.5</target> </configuration> Tnx and best regards, Anton Code:Caused by: java.lang.UnsupportedClassVersionError: Bad version number in .class file at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:675) at net.sf.jasperreports.engine.util.JRClassLoader.loadClass(JRClassLoader.java:338) at net.sf.jasperreports.engine.util.JRClassLoader.loadClassFromBytes(JRClassLoader.java:239) at net.sf.jasperreports.engine.design.JRAbstractJavaCompiler.loadEvaluator(JRAbstractJavaCompiler.java:88) at net.sf.jasperreports.engine.design.JRAbstractCompiler.loadEvaluator(JRAbstractCompiler.java:320) at net.sf.jasperreports.engine.JasperCompileManager.loadEvaluator(JasperCompileManager.java:240) at net.sf.jasperreports.engine.fill.JRFillDataset.createCalculator(JRFillDataset.java:420) at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:432) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:77) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:87) at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:57) at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:142) at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:78) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:624) at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:605)
  8. Hi! The following renders perfect when generated from Java (compile, fill): <imageExpression class="net.sf.jasperreports.engine.JRRenderable"><![CDATA[net.sf.jasperreports.renderers.BatikRenderer.getInstance( net.sf.jasperreports.renderers.BatikRenderer.class.getResourceAsStream( "/what/ever/reports/images/CS_Logo.svg"))]]></imageExpression> When I hit "preview" in iReport it renders nothing. No error, no image. Anybody any idea? Or is it a iReport bug? Thank you very much in advance! Regards, Anton Post Edited by abtrapp at 05/16/2011 06:07
  9. I "upgraded" to 4.0.1 - problem gone.
  10. everything on sourceforge, stupid me :)
  11. Cool. Thank you. Maybe I am blind, but where can I download the 4.0.1?
  12. Hi! When I create a report, compile it in Java and create a PDF in a static text or textfield (that is more than long enought): text "XXX" is rendered "XX (newline) X" text "XXXX" is rendered "XXX (newline) X" text "XXXXX" is rendered "XXXX (newline) X" text "XXXXXX" is rendered "XXXXX (newline) X" text "aaaaa" is rendered "aaaa (newline) a" text "Hugo Boss" is rendered "Hugo Boss"I am using Jasper Reports 4.0.2 / iReport 4.0.2 on OS X Snow Leopard. This occures in the PDF preview from OS X and Adobe Acrobat Reader, the iReport preview shows the text correct... I can't force all customers to use the internal iReport renderer, so is there any way to produce correct PDFs??? Anybody any idea??? Thank you very much in advance! Regards, Anton Trapp
×
×
  • Create New...