现在fox 有内置的截图功能
我现在有一个图片列 想直接再点击增加的时候就会出现截图功能 直接截图能行吗 哪里有案例 谢谢
解决代码如下 :
If e.Col.name = "图片" Then
baseMainForm.WindowState= Windows.forms.FormWindowState.Minimized(最小化)
ClipBoard.Clear
Dim proc As new Process
proc.File = ApplicationPath & "/capture.exe"
proc.WaitForClose = True
proc.Start
If ClipBoard.GetImage IsNot Nothing Then
Dim f As String = e.Row("项目") & "\" & "报价配图" & "\"& Format( date.Today,"yyyy-MM-dd") & "/" & e.Row("产品名") & e.Row("工艺用材说明") & ".jpg"
Dim path As String = e.Col.DataCol.DefaultFolder
If path = "" Then
path = ProjectPath & "Attachments/"
End If
basemainform.WindowState = 2(最大化)
Dim dir As String = FileSys.GetParentPath(path & "/" & f)
If FileSys.DirectoryExists(dir) = False Then FileSys.CreateDirectory(dir)
ClipBoard.GetImage.save(path & "/" & f)
e.Row(e.Col.name) = f
End If
e.cancel = True
End If
[此贴子已经被作者于2016/8/5 22:06:54编辑过]