截图时隐藏的主窗口截图后不出来同,直接就关闭程序了
basemainform.visible = False
Dim proc As new Process
proc.File = ApplicationPath & "capture.exe"
proc.WaitForClose = True
proc.Start
If ClipBoard.GetImage IsNot Nothing Then
ClipBoard.GetImage.save(projectPath & Tables("报价主表.报价明细").current("模号") & ".jpg")
msgbox("保存到了")
接下来如何将这个图片放入到表的附图列?下面的代码不行同,请指教
Dim ls = Tables("报价主表.报价明细").current.DataRow.lines("附图")
ls.add(projectPath & Tables("报价主表.报价明细").current("模号") & ".jpg")
Tables("报价主表.报价明细").current.DataRow.lines("附图") = ls
End If