Click here to Skip to main content
15,891,375 members

Comments by HGH-Developers (Top 1 by date)

HGH-Developers 13-Nov-12 10:21am View    
Hi,
I think your problem is the type of the content, the cell does not contains a string of "101" but a numerical value 101.

worksheet.Cells[1,1].Value is not null but with "as string" it becomes null because it is not a string.
you can use worksheet.Cells[1,1].Value.ToString() (if .Value is not null of course)

Pascal