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`; }
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
Post a Comment