以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  能不能在单元格里面 直接显示图片?  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=160428)

--  作者:jswjyjf
--  发布时间:2021/2/2 13:26:00
--  能不能在单元格里面 直接显示图片?
能不能在单元格里面 直接显示图片?
--  作者:jswjyjf
--  发布时间:2021/2/2 13:31:00
--  
可以了 在drawcll 写入代码
If e.Col.name= "第二列" Then
    e.StartDraw
    If e.Row("第二列") > "" Then
        Dim file As String = projectPath & "attachments\\" & e.Row("第二列")
        If FileSys.FileExists(file) Then
            e.Graphics.DrawImage(getimage(file), e.x + 3,e.y + 3, 150, 150) \'绘制第一个图标
        End If
    End If
    e.text = ""
    e.EndDraw
End If