Bineesh  VP

Bineesh VP

  • 827
  • 945
  • 440.4k

How to convert numbers into words in C#?

Aug 16 2014 1:13 AM
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)