-- 作者:visoni
-- 发布时间:2018/7/26 16:23:00
-- 导入EXCEL 提示错误 老师!!
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
此主题相关图片如下:sds.jpg

|