Excel.Application theApp = new Excel.ApplicationClass();
Excel.Workbook theBook = theApp.Workbooks.Add
Excel.XlWBATemplate.xlWBATWorksheet);
Excel.Worksheet theSheet= (Excel.Worksheet) theBook.Worksheets[1];
theSheet= (Excel.Worksheet) theBook.Worksheets.Add(null, null,1,
Excel.XlSheetType.xlWorksheet);
Any help is greatly appreciated!
theSheet = (Excel.Worksheet) theBook.Worksheets.Add(Type.Missing,
Type.Missing, Type.Missing, Type.Missing);