I am working on a issue related with hard code value for the format property in some reports.
No I am trying create custom format according to the culture code of my customers.
The problem with my code is what my new format (for es-CL and en-US cultures) are not working, wich should be the correct mask if for en-US the thousan separator is , and . for es-Cl?
Thank you
Public Shared Function GetTextMortNumberFormat(culture) As String
Select Case culture
Case "nb-NO"
Return "# ### ###;-# ### ###;''"
Case "es-CL"
Return "#.###.###;-#.###.###;''"
Case "en-US"
Return "#,###,###;-#,###,###;''"
Case Else
Return "# ### ###;-# ### ###;''"
End Select
End Function
You should just use the user’s internationalization settings. For the Language property of the report itself, use:
Now you can use the following formats which will use the user’s regional language settings to format numbers appropriately:
You can see other format strings here