Crystal Report Comma Separator for Crore and Lac (Indian Format)
In order to show a number with comma for 'Crore' and 'Lac' you need to follow this...
# Right click on number field
# Click on 'Format Object'
# Select 'Common Tab'
# Create the following formula in 'Display String' option
if (CurrentFieldValue < 0) then
'('+
Replace(
(Replace(
(ToText(CurrentFieldValue, '##,##,##,##,##0.00')),
' ', '') //--Remove extra space from left (if number is small)
), '-','') //--Remove minus (-) sign from left
+ ')'
else ToText(CurrentFieldValue, '##,##,##,##,##0.00')
# Right click on number field
# Click on 'Format Object'
# Select 'Common Tab'
# Create the following formula in 'Display String' option
if (CurrentFieldValue < 0) then
'('+
Replace(
(Replace(
(ToText(CurrentFieldValue, '##,##,##,##,##0.00')),
' ', '') //--Remove extra space from left (if number is small)
), '-','') //--Remove minus (-) sign from left
+ ')'
else ToText(CurrentFieldValue, '##,##,##,##,##0.00')
Comments
Post a Comment