导入EXCEL 提示错误 老师!! Post By:2018/7/26 16:23:00 [显示全部帖子]
Dim dlg As New OpenFileDialog '定义一个新的OpenFileDialog dlg.Filter= "*.XSL|*.*" '设置筛选器 If dlg.ShowDialog = DialogResult.Ok Then '如果用户单击了确定按钮 Dim mg As New Merger mg.SourcePath = dlg.FileName mg.Format = "excel" '指定格式 mg.SourceTableName = dlg.FileName mg.DataTableName = "WL" mg.Merge() End If