Set header in Excel for worksheet 2
问题 I habe some problems with setting the header for my worksheet 2 Here is my code: Excel.Application xlApp1 = new Excel.Application(); Excel.Workbook xlWorkBook; Excel.Worksheet xlWorkSheet1 = new Excel.Worksheet(); Excel.Worksheet xlWorkSheet2 = new Excel.Worksheet(); object misValue = System.Reflection.Missing.Value; xlWorkBook = xlApp1.Workbooks.Add(misValue); xlWorkSheet1 = (Excel.Worksheet)xlWorkBook.Worksheets.get_Item(1); // Sheet1 xlWorkSheet1.Name = "XX"; xlWorkSheet2 = (Excel