Crystal Reports ToText and ToWards function
- June 9, 2009
- / Category Crystal Reports, Crystal Reports functions
- / Posted By admin
- / 12 Comments.
ToText Function
An very important built function in in Crystal Reports required in strig formulas. ToText function coverts other datatypes to string data type enabling these to be used in concatenation or comparison. Dates, numbers or any datatypes you need in string used to text.
Towords function
ToWords is a very useful function in writing cheques, invoice where no and words are required.
for example ToWords({Salary.Amount}) where amount is 123.10 it will in appear in Crystal reports as one hundred twenty three dollars and ten cents.
More information on these Crystal Reports formulas can be found on Crystal Reports Online Line Help.
We will write more about Crystal formulas and functions stay tuned.
Mian Kaleem, MBA
Recent Comments
- Sustainedstressisnotgoodforhum on Ab initio Specialist, SAPPHIRE CANADA Toronto, ON, CANADA
- rosna kerolinz on What is composite key ?
- virtual call centre jobs uk on Business Development Manager, THE PEOPLE BANK/PLACEMENT GROUP Ottawa, ON, CANADA
- Lannie on Solutions Architect, Retail Banking, AN UNNAMED COMPANY London, ON, CANADA
- Smoke51 on Accounting centric data warehouse / accounting data mart
Categories
- Analysis Services (12)
- ASP Classic (4)
- Business Intelligence (1437)
- Cloud Computing (5)
- Columnar databases (2)
- Computer Hardware (1)
- Crystal Reports (73)
- Crystal Reports Deployment (6)
- Crystal Reports functions (13)
- Dashboards (3)
- data analyses (21)
- Data Analysis project Hands On Tutorial (2)
- Data Analyst, SQL, BI Jobs (1376)
- Data analysts (10)
- Data Governance (35)
- Data Import and export (31)
- Data mart (73)
- Data Mart Examples (32)
- Data Mart Schema (18)
- Data Mart vrs Data Warehouse (38)
- Data Mashup (3)
- Data Masking (1)
- Data Mining (7)
- Data Model (16)
- Data Transformation (22)
- E Reporting Services by EReporting.net (20)
- Events (1)
- Evidenced Based Management (4)
- Excel / Spread sheets (12)
- Excel 2007 (3)
- Fastly Changing Dimensions (1)
- Flat File Vrs RDMS (2)
- Grid Computing (2)
- Healthcare (1)
- HOLAP (1)
- Integeration Services (5)
- KPI (1)
- Master Data Management (3)
- MDX (10)
- Metadata (2)
- Microsoft Dynamics (2)
- MOLAP (2)
- MS Access (6)
- MS Access 2007 (5)
- News (3)
- OLAP vrs OLTP (5)
- Operational Databases Vrs Business Intelligence (3)
- Oracle (3)
- Quality Assurance (5)
- Reference (5)
- Reporting and Business Intelligence Experts (1)
- Restoring .bak File (1)
- ROLAP (2)
- Scorecards (1)
- Search engines (1)
- Selected BI Videos (3)
- Slowly Changing Dimension (5)
- Sql Reporting Services (28)
- SQL Server 2000 (16)
- Sql Server 2005 (20)
- Sql Server 2008 (26)
- Sql Server 2008 Express (4)
- SQL, BI, IT news (48)
- Top Searches on data Mart (2)
- Transact-SQL (9)
- Uncategorized (7)
- Upcomming Posts and Queries by readers of datamart.org (47)
- Wordpress (1)



i need to know if i can use the to word function to convert numbers to chinese word characters?
hi. I am used Crystl report.how to print towords in the value 2,45,545.
Hi,
I need help in crystal reports Check printing. While printing number in words it is printing 3,65,945.00 .
i want words in ” THREE LACKS SIXTEFIVE THOUSAND AND NINE HUNDARD AND FORTY FIVE ONLY”.
I WANT FORMULA.
THANKS
write funtion
Ex:
ToWords(Invoice.Value)
hi ! i am used vb.net+msAccess.
i m user crystalreport.
how to Export to CrystalReport To Tally9.
if its possiable? pls help me.
my email id: vmahee@gmail.com.
Hi,
You can follow the below example of ToWord Function.
ProperCase(Replace(ToWords (( {sp_AgFinV2Cheque;1.FINALAMT})),’and xx / 100′,’only’))
Hello Sir,
I am Rajkumar.working in SAP B1.for that i have to work in crystal reports.i am having doubts in crystal reports(Formula fields).
Please guide me to get knowledge in formula fields.especcially i want to know, how to convert Number into words(Convert into Indian Rupee).
please do the needful.
Please Mail me , that if you have any pdf for formula fields.
Thanks & Regards
Rajkumar.k
You have to create 2 formula fields as follows
1- ProperCase (‘Indian Rs’) This field is created in the Crystal formula.
2- ToWords ({StoredProcedure3_1;1.Salary}) – This field is a Salary field.
Then you can put these 2 fields in your report. I fyou find another alternative solution please let us know.
I need help in crystal reports 8.5 Check printing. While printing number in words it is printing 3,65,945.60 .
i want words in ” THREE LACKS SIXTEFIVE THOUSAND NINE HUNDARD FORTY FIVE RUPEES AND Sixty Paisa ONLY”.
I WANT FORMULA.
Plz Mail me immediately at
rana_farhanr@hotmail.com
Towords function
ToWords is resulting in as one hundred twenty three and 10 / 100
its not showing cents in words
Hello mahesh, Raj Kumar, admin and Farhan Rana.
Use the below formula it works fine for Indian Ruppees.
But please tell me how to convert number into US Currency words where last 2 decimal should be framed as cents in words
numbervar RmVal:=0;
numbervar Amt:=0;
numbervar pAmt:=0;
stringvar InWords :=”Rupees “;
Amt := tonumber(Sum({@Amount}));
if Amt > 10000000 then RmVal := truncate(Amt/10000000);
if Amt = 10000000 then RmVal := 1;
if RmVal = 1 then
InWords := InWords + ” ” + towords(RmVal,0) + ” crore”
else
if RmVal > 1 then InWords := InWords + ” ” + towords(RmVal,0) + ” crores”;
Amt := Amt – Rmval * 10000000;
if Amt > 100000 then RmVal := truncate(Amt/100000);
if Amt = 100000 then RmVal := 1;
if RmVal >=1 then
InWords := InWords + ” ” + towords(RmVal,0) + ” lakhs”;
Amt := Amt – Rmval * 100000;
if Amt > 0 then InWords := InWords + ” ” + towords(truncate(Amt),0);
pAmt := (Amt – truncate(Amt)) * 100;
if pAmt > 0 then
InWords := InWords + ” and ” + towords(pAmt,0) + ” paisa only”
else
InWords := InWords + ” only”;
UPPERCASE(InWords)
local stringvar isNumber := cstr({SalesOrderDetail.UnitPrice});
local numbervar iswhole := ToNumber ({SalesOrderDetail.UnitPrice});
local numbervar ispos := instrrev(isNumber, ‘.’);
local numbervar isdecimal := 0;
if ispos > 0 then
(
isdecimal := CDbl(right(isNumber, length(isNumber) – ispos));
);
Uppercase(ToWords(iswhole, 0) + ‘ Dollars and ‘ + ToWords(isdecimal, 0) + ‘ Cents Only’);