Solved

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

Posted on 2008-10-23
3
466 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 3

Accepted Solution

by:
bigdaddyz99 earned 50 total points
ID: 22809634
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

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…

710 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