Foxtable(狐表)用户栏目专家坐堂 → 请教 merger 问题


  共有9399人关注过本帖树形打印复制链接

主题:请教 merger 问题

帅哥哟,离线,有人找我吗?
狐狸爸爸
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:管理员 帖子:47448 积分:251054 威望:0 精华:91 注册:2008/6/17 17:14:00
  发帖心情 Post By:2012/9/26 15:57:00 [显示全部帖子]

导入之后,删除空行:

 

Dim dlg As New OpenFileDialog '定义一个新的OpenFileDialog
dlg.Filter= "excel文件|*.xls" '设置筛选器
If dlg.ShowDialog = DialogResult.Ok Then '如果用户单击了确定按钮
    Dim mg As New Merger
    mg.SourcePath = dlg.FileName
    mg.SourceTableName = "sheet1$"
    mg.DataTableName = "运费"
    mg.Merge()
End If

DataTables("运费").Deletefor("某某行 Is Null")


 回到顶部