Dim Ls As New List(Of String)
For Each r as DataRow In DataTables("XXX").Select("XX Is Not Null")
Ls.AddRange(r("X").split(" "))
Next
Dim Book As New XLS.Book '定义一个Excel工作簿
Dim Sheet As XLS.Sheet = Book.Sheets(0) '引用工作簿的第一个工作表
For n As Integer = 0 To Ls.Count-1 '向工作表的单元格中设置值
Sheet(n, 0).Value = Ls(n)
Next
Book.Save("c:\reports\test.xls") '保存工作簿
Dim Proc As New Process '打开工作簿
Proc.File = "c:\reports\test.xls"
Proc.Start()