4
Answers

How to convert numbers into words in C#?

Bineesh  VP

Bineesh VP

10y
1.1k
1
Hi,
I am in the midst of a program to convert number into words.
I am getting an error : Input string was not in a correct format
These are my codes:-
 
 My error comes in these line:-
int number = Convert.ToInt32(txtNetAmount.Text.ToString()); // error line
frm.Report.SetText(axFpColm, axFpRow, "In words: " +objConv.NumberToWords(number)); 
Please help me to solve this problem.
Answers (4)