Sep 27, 2007 #1 jpreciado MIS Feb 7, 2004 36 MX I need to asign a Cell value to a variable but what is asigned is the object's name instead of the cell's value. here is the code: string MyValue = axSpreadSheet1.Cells[1,1].ToString(); this works though: axSpreadSheet1.Cells[iRow,iCol] = "HELLO";
I need to asign a Cell value to a variable but what is asigned is the object's name instead of the cell's value. here is the code: string MyValue = axSpreadSheet1.Cells[1,1].ToString(); this works though: axSpreadSheet1.Cells[iRow,iCol] = "HELLO";
Sep 29, 2007 #2 Guru7777 Programmer Dec 10, 2003 331 US I believe you need to do something like this: Code: string MyValue = axSpreadSheet1.Cells[1,1].Value.ToString(); ---------------------------------------- TWljcm8kb2Z0J3MgIzEgRmFuIQ== Upvote 0 Downvote
I believe you need to do something like this: Code: string MyValue = axSpreadSheet1.Cells[1,1].Value.ToString(); ---------------------------------------- TWljcm8kb2Z0J3MgIzEgRmFuIQ==