Iam trying to populate an Excel sheet using the COM MS Excel Lib10.0 using the following code:

Excel.Application a = new Excel.Application();
Excel.Workbook wb = a.Open ("C:\book1.xls");
Excel.Worksheet ws = wb.Worksheets.Item (1);

ws. Cells [2, 1].value = "YOUR STRING VALUE";
ws. Cells[ 2, 2].value = "YOUR STRING VALUE";


I get errors in the underlined lines. Help me out?