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 formatThese 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.