faisalk08 Posted May 7, 2010 Share Posted May 7, 2010 I want to place rectangles repeatadly in my report based on an integer field. Regards,Faisal.K Link to comment Share on other sites More sharing options...
pablodc Posted May 7, 2010 Share Posted May 7, 2010 I think there are no way to create dinamically objects in a jrxml way. If you create a program that write the .jrxml you can do this, but from design almost sure that not. I don't know if with a scriptlet and some magic you can do what you want... good luck Grettings from Argentina! Link to comment Share on other sites More sharing options...
lucianc Posted May 7, 2010 Share Posted May 7, 2010 You can do that using a list element. Create a subdataset for it and use new JREmptyDataSource(..repeat count..) as data source for the list.Regards,Lucian Link to comment Share on other sites More sharing options...
pablodc Posted May 10, 2010 Share Posted May 10, 2010 I have tried with a empty list (btw in JR 3, where I stuck, this control does not exists) and applied to it a style with borders but when I put this for the Datasource:new net.sf.jasperreports.engine.JREmptyDataSource(5)I get a single rectangle that expands and not five rectangles... what I doing wrong?, I using iReport 3.7.1. Thanks Grettings from Argentina! Link to comment Share on other sites More sharing options...
lucianc Posted May 10, 2010 Share Posted May 10, 2010 Upload your JRXML so that we can see what exactly you are doing.Regards,Lucian Link to comment Share on other sites More sharing options...
pablodc Posted May 13, 2010 Share Posted May 13, 2010 Hi Lucian, I have attached a report with a list element. The same report used to test what you have suggested to Faisal. Feel free to edit it to show your point. Thanks.Grettings from Argentina! Link to comment Share on other sites More sharing options...
lucianc Posted May 17, 2010 Share Posted May 17, 2010 See attached a report that illustrates my suggestion.Regards,Lucian Link to comment Share on other sites More sharing options...
pablodc Posted May 23, 2010 Share Posted May 23, 2010 Ok. I have learned something new today. Thanks by your time. Grettings from Argentina! 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