Formatting Phone Number
I have a nvarchar(20) field in an MSSQL database to start a phone number.
I have the field displaying on the report, and I right click on the field and select FORMAT.
I select CUSTOM and then Phone Number.
It does not do any formatting.
Is this because it is a string field? What should I be storing phone numbers in if that's the case?
Any assistance on getting it to properly display a phone number such as (555) 555-5555 would be great.
Thanks.
I have the field displaying on the report, and I right click on the field and select FORMAT.
I select CUSTOM and then Phone Number.
It does not do any formatting.
Is this because it is a string field? What should I be storing phone numbers in if that's the case?
Any assistance on getting it to properly display a phone number such as (555) 555-5555 would be great.
Thanks.
Comments
FastReport uses the String.Format method to do the formatting. This method cannot work with string-type parameters.
Please check this post:
http://www.fast-report.com/en/forum/?p=/discussion/6765