Bineesh  Viswanath

Bineesh Viswanath

  • NA
  • 1k
  • 777.1k

How to convert numbers into words in C#?

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