Attachments不是Attachment,给自己挖了个坑
If e.Col.name = "测试FTP" Then
e.StartDraw
If e.Row("测试FTP") > "" Then
Dim Ls = e.Row.DataRow.Lines("测试FTP")
If FileSys.FileExists(projectPath & "RemoteFiles\" & Ls(0)) Then '如果文件存在
e.Graphics.DrawImage(getimage(projectPath & "RemoteFiles\" & Ls(0)) , e.x + 3,e.y + 3, 50, 50) ' 绘制第一个图标
End If
End If
e.text = ""
e.EndDraw
End If
'
' '以下 -- 图片本地测试,原件
If e.Col.name = "图片本地测试" Then
e.StartDraw
If e.Row("图片本地测试") > "" Then
Dim Ls = e.Row.DataRow.Lines("图片本地测试")
If FileSys.FileExists(projectPath & "Attachments\" & e.Row("图片本地测试")) Then '如果文件存在
'MessageBox.show(e.Row("图片本地测试"))
'output.show(Ls(0))
e.Graphics.DrawImage(getimage(projectPath & "Attachments\" & e.Row("图片本地测试")) , e.x + 3,e.y + 3, 50, 50) ' 绘制第一个图标
End If
End If
'e.text = ""
e.EndDraw
End If