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


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

主题:[求助]PictureViewer

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


加好友 发短信
等级:超级版主 帖子:110574 积分:562760 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2016/12/19 20:11:00 [显示全部帖子]

Dim v As String = Tables("商品表").Current("款号")

Dim dlg As New OpenFileDialog
Dim piv As WinForm.PictureViewer = e.Form.Controls("PictureViewer1")
dlg.Filter= "图形文件|*.bmp;*.jpg;*.gif"
If dlg.ShowDialog = DialogResult.OK Then
    Dim pth As String = "\\Dianshang\电商共享夹\ERP系统专用\图片\"
    Dim ext As String = FileSys.GetName(dlg.FileName).Split(".")(1)
    Dim filename As String = pth & v & "." & ext
    If FileSys.FileExists(filename) = False Then
        FileSys.CopyFile(dlg.FileName, filename)
    End If
    piv.AddFile(filename)
End If

 回到顶部