wood burning stoves 2.0*
The moose likes Other Open Source Projects and the fly likes two variable addition Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "two variable addition" Watch "two variable addition" New topic

two variable addition

vitesse wei
Ranch Hand

Joined: Sep 07, 2007
Posts: 100
I have two report wide variables in my jasper report,both of them are summary values to some columns,they are display in summary band,can I add one more variable to do some math operation,like v3=v1*100/v2.
if yes,how?

SCJP 5.0<br />SCWCD1.4<br />SCBCD5
vitesse wei
Ranch Hand

Joined: Sep 07, 2007
Posts: 100
just figure it out.
new java.lang.Float(($V{v1}.floatValue())*100/$V{v2}.floatValue())

I agree. Here's the link: http://aspose.com/file-tools
subject: two variable addition
Similar Threads
Compiler vs. Runtime Error
Hyperlink from Subreport to Master Report
need help
Hyperlink from subreport to master report in Jasperreports
[RESOLVED] jasper & iReport multi-reports