Monday, June 27, 2005

More JasperReports

Images
paths to images are standard Java paths. The field
Image Expression:
should look like "images//checked.gif"

Set
Scale Image: RetainShape

Printing only when the image matches a field, set the 'Print when when expression' field to:
new Boolean($F{LASTNAME}.equalsIgnoreCase("Vader"))

You can use this to draw checkboxes-- just have an empty checkbox next to each item, then create an image with a filled checkbox only when a field has the right value.

Invisible pageFooter
My pageFooter doesn't show up! Solution is go to View>bands
Print when when expression:
new Boolean(true)

Pretty dumb, but there you go.

Concat Strings

You can concatenate fields like so
$F!{field1} + ", " + $F!{field2}

Multiple Pages for Reports
The reports I am writing are electronic copies of paper forms, and these forms are two pages long. Because they are medical documents and thus legal documents, they've got to look exactly like the paper forms. How do you get these two page reports to print out?

Hmm when I figure this out I'll post it :)

No comments:

Labels

Blog Archive

Contributors