zaya80 Posted June 10, 2009 Share Posted June 10, 2009 HI all,I'm using iReport 3.5.2.I would like to count in my report all empty cells in a column. TheFormula in excel is COUNTIF(B8:B500;"")Due to the special sign " (quotation mark) i have to escape the sign with \. (COUNTIF(B8:B500;\"\"))But this Formula doesn't yield any result on the export sheet. (see the code mentioned below) Has anyone an idea how could i write this formula in iReport? Thanks, Zaya Code:<reportElement key="staticText-31" mode="Transparent" x="176" y="90" width="257" height="15"><propertyExpression name="net.sf.jasperreports.export.xls.formula"><![CDATA["COUNTIF(B8:B500;\"\")"]]></propertyExpression></reportElement> Link to comment Share on other sites More sharing options...
ooober Posted June 11, 2009 Share Posted June 11, 2009 jasper report has its own formulas ( $F{EmptyColmn} ==""? $V{CountRow}:" " ) this will give you empty record with in given column. In Excel check your excel report, if it is not showing merging cell error. RegardsHasham Link to comment Share on other sites More sharing options...
zaya80 Posted June 15, 2009 Author Share Posted June 15, 2009 Dear HashamThank you for your response. But it doesn't still work. (Or i hadn't understood your answer :-( )In the TextField i was giving this formula: ( $F{QUANTITY}==""? $V{CountRow}:" ")($F{QUANTITY} is the column in the Detail Band,in which i searching for empty fields$V{CountRow} is a variable, which has following properties: Calculation: Count Increment type: Column Reset Type: Report Variable Class: java.lang.String)I hope, you understand my horrible english. Regards,Zaya 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