error while opening the excel

Feb 16, 2009 at 5:09 AM

I am trying to write to an excel file.
It is writing the first row fine.
But when I am trying to write the second row I am getting the following error.
'Excel found an unreadable content in MyXMLFile.xlsx Do you want to recover the contents of the workbook? If you trust the source of this workbook click yes.'
I am maintaining the row count in one of the cells. So each time I am writing the incremented value to the cell.

Please help.