Try getting the Value property and casting it to what value you think it
should be. Leave it as object (or string) if you don't know.
e.g.
Excel.Worksheet shtData;
....
int i = (int)shtData.Cells[x,y].Value;
string s = shtData.Cells[p,q].Value.ToString();
object o = shtData.Cells[r,s].Value;
"menkaur" <me*****@discussions.microsoft.com> wrote in message
news:1C**********************************@microsof t.com...
Thenks for info.
But i still have problems with reading data: i can't convert
Worksheet.Cells[x,y] to eny known types. typeof says, the type of
returned
object is System.__ComObject. This type and Variant are protected System
members. Do You know, what type shood be used here?
An other problem: how to terminate created Excel.Application after i do
not
need it? - it stays in memory even after application closes.