marianela Posted March 9, 2007 Share Posted March 9, 2007 Hi everyone¡¡¡ Sorry to butter you all with this (silly) problem...I'm using a subreport that is include in my master report (of course...), I'm passing the REPORT_COUNT variable to the master report...everything works really nice until now. My problem is that, now that I have that variable in my master report, I need to use it in order to decide if my detail band is going to print or not (PrintWhenExpression). The problem that I'm facing is that the value of my variable is null when my subreport doesn't have any data; so I don't know what is suppose to the my expresion in the PrintWhenExpression of my detail...I was thinking maybe something like: Code:new java.lang.Boolean($V{Condicion}.intValue() > 0)But it doesn't work at all... :blink: I really don't know what to do,pleaseeeee any help will be appreciate. Thanks in advanced,Regards,Marianela;) P.S. I hope I explain my self clearly, but If some body need more detail please tell me I will be more than happy to provide them....Post edited by: marianela, at: 2007/03/08 19:49 Link to comment Share on other sites More sharing options...
martynhiemstra Posted March 9, 2007 Share Posted March 9, 2007 I dont see the problem. If there is no data then the detail band doesnt print anyhow so why would you want to set the PrintWhenExpression on the detail band. Link to comment Share on other sites More sharing options...
marianela Posted March 9, 2007 Author Share Posted March 9, 2007 The reason I want to set the PrintWhenExpression is because I have some other fields in my detail band beside the subreport. So don't want to print those field when my subreport doesn't have any records to print.I attach a document where you can see how my report looks now.If you watch carefully you can notice that the second row Cliente: 68-Atlantel Inc doesn't have any rows from the subreport, so in this case that line shouldn't be print...I don't know if I explain myself clearly,but I hope somebody can help me. Thanks a lot in advenced,RegardsMarianela;) [file name=ReportView.doc size=77312]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/ReportView.doc[/file]Post edited by: marianela, at: 2007/03/09 12:02 Link to comment Share on other sites More sharing options...
marianela Posted March 9, 2007 Author Share Posted March 9, 2007 martynhiemstra,Thanks a lot for your answer, I already find the solution.I found it here,http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=&func=view&catid=9&id=21194#21194 I hope this helps to others, Regards,Marianela;) 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