Solved

What is the code structure to format a numeric value as a phone number in a rdlc

Posted on 2008-10-23
3
462 Views
Last Modified: 2013-11-26
I am trying to format a numeric value retrieved from an data table, so that it will display as a phone number in a rdlc. I am using the microsoft report viewer and creating the rdlc using the drag method from the available fields in the data table.
rdlc-screen-view.bmp
0
Comment
Question by:gregoronovich
3 Comments
 
LVL 3

Accepted Solution

by:
bigdaddyz99 earned 50 total points
Comment Utility
I use something similar to this from
http://www.themssforum.com/SVCS/format-phone/
= Format(Convert.ToDouble("90155585850000"), "(###) ###-#### 'Ext.' ####") 
 

'or use a regular expression, sth like 
 

=System.Text.RegularExpressions.Regex.Replace(Fields!phone.Value, 

"(\d{3})(\d{3})(\d{4})", "($1) $2-$3") 

Open in new window

0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now