Tips and Tricks
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Tips and Tricks
Message Icon Topic: Numbers to Text Post Reply Post New Topic
Author Message
Brou
Newbie
Newbie
Avatar

Joined: 23 Feb 2010
Location: Guernsey
Online Status: Offline
Posts: 1
Quote Brou Replybullet Topic: Numbers to Text
    Posted: 23 Feb 2010 at 7:18am
Hi

Can anyone tell me how I do the following ?

I am using crystal reports XI release 2

I am trying to take a number and show it as the text version. For example

$150.00 to show as One Hundred and Fifty and 00/100
or
$200.50 to show as Two Hundred and 50/100

Is this possible?

Thank you

Brou
Brou
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 23 Feb 2010 at 7:46am
try:
ToWords(field)
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 23 Feb 2010 at 7:47am
I am sure it is possible with a formula, but it would have to consider a lot of possiblilities and hopefully the data is limited (i.e., nothing over $1000 and nothing negative). 
Basically the number would have to broken down by hundreds, tens, ones and cents.  Put through a series of if statements or a switch statement (for each group - hundreds, tens, etc.) to get a string and then combine the seperate strings back to one string.
 
Lots of luck.
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.016 seconds.