将 DataGridView 数据导出到 MS Excel 时需要使用 System.Reflection.Missing.Value 的原因是什么,如下面的代码所示?
Dim missValue As Object = Reflection.Missing.Value
Dim xlApp As New Excel.Application
Dim xlWorkBook As Excel.Workbook = xlApp.Workbooks.Add(missValue)
Dim xlWorkSheet As Excel.Worksheet = xlWorkBook.Sheets("Sheet1")