Showing posts with label jasper-report. Show all posts
Showing posts with label jasper-report. Show all posts

Monday, December 31, 2012

Create a url link with JasperReports

To make a textField a hyperlink to an external URL, you need to add the attributehyperlinkType="Reference" to the element, and add a  tag within it. The reference expression is where you put the URL.
For example:

    
    
    <![CDATA["Click Here!"]]>
    <![CDATA["http://www.google.com"]]>

The hyperlinkTarget attribute behaves in the same way as the target attribute in HTML.
Note that only textFields, images and charts can be hyperlinked in this way.
For a more in-depth explanation and more examples, see this jasperforge page.

Thursday, September 20, 2012

Can I manual select JRE to startup iReport ?

Edit the file /etc/ireport.conf
there is a line to set a specific jre to use  (jdkhome="/path/to/jdk")
Uncomment it (removing the #) and set your favorite jdk. I assume you can use a jre too instead of a jdk.
Giulio

http://jasperforge.org/plugins/espforum/view.php?group_id=83&forumid=101&topicid=15

Tuesday, September 4, 2012

JasperReports: default value instead of 'null'

Supposing the field name is "value", in the "Text Field Expression", write:
($F{value} != null) ? $F{value} : "0.00"

http://stackoverflow.com/questions/2402237/jasperreports-default-value-instead-of-null