Foxtable(狐表)用户栏目专家坐堂 → [求助]另存为


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

主题:[求助]另存为

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


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/6/6 10:44:00 [显示全部帖子]

If Tables("通讯录").Current Is Nothing Then
    Return
End If
Dim dr As DataRow = Tables("通讯录").Current.DataRow
Dim dlg As New OpenFileDialog
dlg.Filter = "图形文件|*.bmp;*.jpg;*.gif;*.png"
If dlg.ShowDialog = DialogResult.OK Then
    dr.SQLInsertFile("个人电子信息_照片",dlg.FileName) '插入文件
    Dim pic As WinForm.PictureBox = e.Form.Controls("PictureBox1")
    pic.Image = GetImage(dlg.FileName)

    FileSys.CopyFile(dlg.FileName, "h:\二进制列\mytest.txt",True)
End If


 回到顶部
帅哥哟,离线,有人找我吗?
有点甜
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/6/7 14:32:00 [显示全部帖子]

FileSys.CopyFile(dlg.FileName, "h:\二进制列\" & FileSys.GetName(dlg.fileName),True)


 回到顶部