object misValue = System.Reflection.Missing.Value; Excel.Application xlApp = new Excel.Application(); Excel.Workbook xlWorkBook = xlApp.Workbooks.Add(misValue); Excel.Worksheet xlWorkSheet1 = (Excel.Worksheet)xlWorkBook.Worksheets.get_Item(1); Excel._Worksheet xlWorksheet1 = xlWorkBook.Sheets[1]; Excel.Range xlRange1 = xlWorksheet1.UsedRange;
Excel._Worksheet xlWorksheet2 = xlWorkBook.Sheets[2];
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)