memory721 Posted June 18, 2010 Share Posted June 18, 2010 Hello,I need to somehow show this statement at the bottom of each report:©2007 - 2010 Company, Inc. All Rights Reserved. I need to have the 2010 year as a variable that will change as the year changes. How do I set this up? I was thinking to create a parameter and set the parameter class to java.util.date. My next step was to drag the parameter onto the design layout and right click to edit expression. This is where I get lost. I know that I somehow have to use Year(GetDate()) in this, but I really don't know where. And how do I insert that into the above text? Do I use a text box from the Palette to insert that info first and then insert the year parameter into it?Really appreciate the help!Thank you.Memory721 Link to comment Share on other sites More sharing options...
slow Posted June 19, 2010 Share Posted June 19, 2010 welcome in IReport community...I suggest to you to learn some java and ireport basics...what you ask is really simple but without basic notion seems to be very hard to do :)try this:-create a variable... call it year ( :) ) of type String, leave all parameters at default values except the espression, setting it to:(new SimpleDateFormat("yyyy")).format(new Date())-now create a textfield in your report, of type String and set the expression to:"©2007 - "+$V{year}+" Company, Inc. All Rights Reserved."and run the report... _________________________________________if it works... give me KARMA points please! : ) _________________________________________ Link to comment Share on other sites More sharing options...
memory721 Posted June 21, 2010 Author Share Posted June 21, 2010 WOW!! Thank you so much! Your solution worked beautifully! Please let me know how to give you points because you're getting as many as I can give for your help. Thanks again! Have a great day. Link to comment Share on other sites More sharing options...
slow Posted June 21, 2010 Share Posted June 21, 2010 :)use the "plus" to give karma points... so people can obtain mistic power :)REMEMBER: learn java basics! Link to comment Share on other sites More sharing options...
memory721 Posted June 22, 2010 Author Share Posted June 22, 2010 That makes sense. I've bumped you up. Thank you so much for your help. Link to comment Share on other sites More sharing options...
warren4850 Posted August 17, 2011 Share Posted August 17, 2011 This solution helped me out too! Free Karma points for you! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now