Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Get axSpreadSheet Cells values

Status
Not open for further replies.

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 believe you need to do something like this:

Code:
string MyValue = axSpreadSheet1.Cells[1,1].Value.ToString();

----------------------------------------

TWljcm8kb2Z0J3MgIzEgRmFuIQ==
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top