narayanan_1985 Posted October 22, 2009 Share Posted October 22, 2009 I am using iReport 3.6.0 to design my report. I want to resize the detail bond as per my content height. and also i need to remove a element when data is empty or null. please let me know how to do it.Waiting for the response. Thanks and Regards,Narayanan. G Link to comment Share on other sites More sharing options...
giobby Posted October 22, 2009 Share Posted October 22, 2009 hi, i'm not very able with english (and also with reports) so i can't understand very well your first problem but we should consider that the detail band automatically resize itself by contents (the recordset).Otherwise you should wait for another one's reply (more expert then me).For your second problem, instead, you should find in your data textfield properties the property "Print When Expression" and write like expression something like this: "new Boolean($F{yourData} != null)".I hope to help you bye Giovanni...La puissance est rien sans controle... Link to comment Share on other sites More sharing options...
narayanan_1985 Posted October 22, 2009 Author Share Posted October 22, 2009 Thanks for your reply. I have attached my report. In Item Details Column, I want to remove empty space after 'color : ' data. some times data may come there. if there is no data, space should be truncated. if there is no data, i have to remove the label as well as all the column size should be adjusted accordingly. How to do this?. Is there any way to give border color to details band. Link to comment Share on other sites More sharing options...
giobby Posted October 22, 2009 Share Posted October 22, 2009 try to give the same expression ("new Boolean($F{yourData} != null)") also to the property "Print when expression" of the "color" label... it should work and automatically resize the height of the column... maybe... Giovanni...La puissance est rien sans controle... Link to comment Share on other sites More sharing options...
narayanan_1985 Posted October 22, 2009 Author Share Posted October 22, 2009 Thanks. I used the expression. It is clearing the label. but it is not resizing the column height. any other way? Link to comment Share on other sites More sharing options...
giobby Posted October 22, 2009 Share Posted October 22, 2009 I had an (odd) idea but i don't know if it works: try to use another (separated) text field to show the "color" (ever with the "hiding" property setted) and put this under the "items details",set all the other textfields (not the "item details" one) with the property "deforms"=>"relative to band height" (sorry... i've an italian version and i don't know if is the correct translation)... give me a feedback Giovanni...La puissance est rien sans controle... Link to comment Share on other sites More sharing options...
narayanan_1985 Posted October 22, 2009 Author Share Posted October 22, 2009 Thanks for your answer. I tested. But it is not working. Column height is not resizing. Link to comment Share on other sites More sharing options...
giobby Posted October 22, 2009 Share Posted October 22, 2009 Sorry i've not another ideas at the moment... but if you find how to fix the problem don't forget to post the solution... Anyway i promise to return to this issue. Giovanni...La puissance est rien sans controle... 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