Dim Book As New XLS.Book(e.Form.Controls("Excel文件").Value)
Dim Sheet As XLS.Sheet = Book.Sheets(0)
Tables(CurrentTable.Name).StopRedraw()
\'\'注意以下数组中列名称的顺序,必须和Excel表中的列顺序一致
Dim nmsa() As String = e.Form.Controls("Excel表关联列名1").Value
Dim nmsb() As String = e.Form.Controls("当前表关联列名1").Value
\'\'\'注意下面的循环变量从1开始,而不是从0开始,因为Excel表的第一行是标题
For n As Integer = 1 To Sheet.Rows.Count - 1
Dim r As Row = CurrentTable.AddNew()
For m As Integer = 0 To nmsb.Length - 1
r(nmsb(m)) = nmsa(m)
Next
Next
Tables(CurrentTable.Name).ResumeRedraw()