c# - How to add formula on Crystal report fields -


below crystal report ,i want perform formula below ,as new crystal report how can ?

if (`fee_unit`==percent) { feetotal = (`fee` divided 100) * `number of patients`; } else { feetotal = `fee` *  `number of patients`; } 

crystal report

in field explorer -> formula-> new formula.

from drop down above select basic syntax.  if {tablename.feeunit} = {tablename.percent} // assuming have feeuni , percent column in tablename table. drag drop 2 , wrap code     formula=({tablename.fee}/100)*{tablename.patients}  // formula here keyword  else      formula={tablename.fee}*{tablename.patients}   end if 

Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -