I wrote a program that import data from a user specified excel worksheet, performe some calculations on it and then returns it back to thesame worksheet. It worked quite well, then i was on windows 7. But now am on windos 8, i try to run the code again but it gives me error "HRESULT". Please what could have caused this? Could the windows be responsible for this? I use visual studio 2010, .Net 4.0
When it run and reach the code below it throws an uncaught exception HRESULT
//I have declared worksheet appropriately and
//decleared 'i' as integer and using for loop
//statement to iterate through each row of the
//dataGridview
{
worksheet.cell[2, H].Value = dataGridview.Rows[i].Cell[0].Value;
}
Exporting Data to Excel worksheet
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Munesh SharmaRank #174 · 13.9K reputationPosted Apr 24, 2014, 1:16 AM EDT
http://www.youtube.com/watch?v=FPDjOngX2cw
and
http://www.youtube.com/watch?v=CfNMPDJVjPI