Question : convert.decimal problem

my "used" column is decimal..

 table.AddCell((Decimal.Parse(reader["used"].ToString())));

I use iTextSharp.. table..
       The best overloaded method match for 'iTextSharp.text.Table.AddCell(iTextSharp.text.Cell)' has some invalid arguments       

 Argument '1': cannot convert from 'decimal' to 'iTextSharp.text.Cell'       

Answer : convert.decimal problem


Not sure yet, though try

table.AddCell(reader["used"].ToString());

OR

table.AddCell(new Cell(reader["used"].ToString()));
Random Solutions  
 
programming4us programming4us