Error Input string was not in a correct format. C#

Asked

Viewed 15 times

0

Pessoal Boa tarde Alguém sabe como faço para colocar no formato correto ? follows below my code `if (actualValue != "") { capacityimportData = new Capacityimport();

                capacityimportData.Quantity = Convert.ToInt16(actualValue);
                var data = "";
                if (sheet.GetRow(2).GetCell(actualColumn).CellType == CellType.String)
                {
                    data = sheet.GetRow(2).GetCell(actualColumn).StringCellValue;

                }
                else if (sheet.GetRow(2).GetCell(actualColumn).CellType == CellType.Numeric)
                {          

                    data = sheet.GetRow(2).GetCell(actualColumn).NumericCellValue.ToString();
                   
                }`
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.