samhast Posted February 7, 2013 Share Posted February 7, 2013 Hello,Is it possible to insert dynamic date parameters for schedule reports? Like last month? Current month?Can someone help me with that.. Link to comment Share on other sites More sharing options...
samhast Posted February 7, 2013 Author Share Posted February 7, 2013 I think that's the solution i am searching for:iReport 5.0 introduces relative dates.. Can someone give me an example how I can do it in iReport.. Link to comment Share on other sites More sharing options...
elizam Posted February 7, 2013 Share Posted February 7, 2013 There is a section about relative dates in the iReport Ultimate Guide, at http://community.jaspersoft.com/system/files/documentation/ireport-ultimate-guide.pdf.The guide gives an example:The important part is DAY-1. Available keyword are DAY, WEEK, MONTH, QUARTER, SEMI, and YEAR. Link to comment Share on other sites More sharing options...
samhast Posted February 8, 2013 Author Share Posted February 8, 2013 Yes I read about it. But when I try it, I always get an error: Cannot resolve DateRange...... Link to comment Share on other sites More sharing options...
curbish Posted June 26, 2013 Share Posted June 26, 2013 Yes thats because you need to include the class, instead of new DateRangeBuilder("DAY-1").toDateRange() use new net.sf.jasperreports.types.date.DateRangeBuilder("DAY-1").toDateRange()and have the parameter class as net.sf.jasperreports.types.date. Link to comment Share on other sites More sharing options...
fabrice.sabot Posted February 5, 2014 Share Posted February 5, 2014 I had the same story : Doc reading, same example and same error @zctcurbish : I also tried your solution without any results.. Link to comment Share on other sites More sharing options...
ernst_2 Posted September 10, 2015 Share Posted September 10, 2015 Hi, I have tried it, but I get this error (by iReport and the Server): "net.sf.jasperreports.engine.rd.DateRange cannot be resolved to a type" Is something missing? Solved: I use "net.sf.jasperreports.types.date.DateRange" now. 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