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')

Comments

Popular posts from this blog

Crystal Report Font Size Problem

Crystal Report ToWords() Function For Crore and Lac

Generate Auto ID With Prefix