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

linden

Members
  • Posts

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

  1. I'm guessing you tried to put the line in a footer band? You may want to try the Summary band or by making a group with no expression and putting it into the footer of that.
  2. You can embed full fonts by putting the font files into the jasperreports-fonts-6.x.y.jar and hooking them up in the xml scripts (use the default as a template). Or if you are using jasper studio to generate the report then go to Window -> Preferences -> Jaspersoft Studio -> Fonts and add it there in the UI.
  3. Hi, I see in the release notes for 6.10 it says "New tool to import the report layout from an SVG or PDF document". Can someone point me to documentation for this or give an example of how to do it? Much appreciated.
  4. thanks for reply but no, as you can see from the jrxml i already have that setting on
  5. Hi, I'm working with the latest jaspersoft studio version as of today. I'm having a issue with the 'Remove Line When Blank' not working after it evaluates some data Say in a report I have amounts in a column being added up with values (3,2,1,-3,-2,-1). Only after finding that they add up to 0 do I want to remove them all and leave no white space behind. How is this done? here is an example .jrxml file to demonstrate <?xml version="1.0" encoding="UTF-8"?><!-- Created with Jaspersoft Studio version 6.1.0.final using JasperReports Library version 6.1.0 --><!-- 2015-07-10T13:17:35 --><jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="Blank Template" pageWidth="612" pageHeight="792" columnWidth="555" leftMargin="0" rightMargin="0" topMargin="0" bottomMargin="0" uuid="22974b6e-10a0-4530-8d14-87b0b674ae2c"> <property name="com.jaspersoft.studio.data.defaultdataadapter" value="Sample DB"/> <queryString language="SQL"> <![CDATA[sELECT * FROM (values(1),(2),(3),(-3),(-2),(-1)) AS x]]> </queryString> <field name="C1" class="java.lang.Integer"/> <variable name="Variable_1" class="java.lang.Integer" calculation="Sum"> <variableExpression> <![CDATA[$F{C1}]]> </variableExpression> </variable> <columnHeader> <band height="13" splitType="Stretch"> <staticText> <reportElement x="0" y="0" width="100" height="13" uuid="f8b9997e-98e5-4123-8533-054558ef12e2"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> </reportElement> <text><![CDATA[col header]]></text> </staticText> </band> </columnHeader> <detail> <band height="13" splitType="Stretch"> <textField evaluationTime="Auto" isBlankWhenNull="true"> <reportElement x="0" y="0" width="180" height="13" isRemoveLineWhenBlank="true" uuid="b6b32530-7b05-4d24-837f-8eb7f396733d"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> </reportElement> <textElement markup="none"/> <textFieldExpression> <![CDATA[$V{Variable_1} != 0 ? $F{C1} : ""]]> </textFieldExpression> </textField> </band> </detail> <summary> <band height="13"> <staticText> <reportElement x="0" y="0" width="100" height="13" uuid="b5d6692a-d851-4669-9dc7-b832ca674365"> <property name="com.jaspersoft.studio.unit.height" value="pixel"/> </reportElement> <text> <![CDATA[summary]]> </text> </staticText> </band> </summary></jasperReport>[/code]As you can see from the example, it generates white space in the report when I do not want it to. I am aware that I can do a 'SUM' in the main SQL query as a subquery to know if its '0' or not before drawing to the report but with large scale reports there can be lots of efficiency lost by doing this. Hoping someone can help..thanks
  6. Hi, I'm using Jaspersoft Studio 6.0.3. I created a report book with a few parts in it. When I click on one of the parts and look at the properties window it shows the regular "Print When Expression" but also "Tab Name Expression". I'm wondering what this tab name expression is about and how to use it. I read the tooltip but its still not making much sense to me. Thanks in advance, Linden
  7. I found a way around it by creating a variable 'v1' with reset type 'report' and then setting its expression in java to $V{REPORT_COUNT} == 0 ? "" : "City" because in my example I needed to show/hide a header of a subreport when it had csv datasource data or not. Then I just replaced the header static text with a text field with value $V{v1} that gets evaluated at report time as well. Hope it helps
×
×
  • Create New...