Dim dlg As New OpenFileDialog
dlg.MultiSelect = Truedlg.Filter= "Excel文件|*.xls" '设置筛选器
If dlg.ShowDialog = DialogResult.OK Then
For Each fl As String In dlg.FileNames
Dim Book As New XLS.Book(fl)
Dim name As string = Book.Sheets(0).name
Dim ip as New Importer
ip.SourcePath = fl '指定数据文件
ip.SourceTableName = name & "$" '指定要导入的表
ip.NewTableName =name '导入后的表名
ip.Format = "Excel" '指定导入格式
ip.Import()
Next
End If