This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "two variable addition" Watch "two variable addition" New topic
Author

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())


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