Foxtable(狐表)用户栏目专家坐堂 → 导出数据


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

主题:导出数据

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


加好友 发短信
等级:超级版主 帖子:106545 积分:541890 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2017/10/16 21:11:00 [显示全部帖子]

Dim ccb As WinForm.CheckedComboBox = e.Form.Controls("CheckedComboBox1")
If ccb.Text > "" Then
    Dim lst As new List(of String)
    lst.AddRange(ccb.Text.Split(","))
    For Each c As Col In Tables("表A").Cols
         c.Visible = lst.Contains(c.Name)
    Next
End If
Dim flg As New  SaveExcelFlags
flg.RowNumber = True
flg.CellStyle = True
flg.VisibleOnly = True
Tables("表A").SaveExcel("f:\123.xls","表A",flg)

Dim Proc As New Process
Proc.File = "f:\123.xls"
Proc.Start()

 回到顶部