以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 程序发布完后调用图片失败 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=79061) |
-- 作者:owenlyx -- 发布时间:2015/12/23 15:09:00 -- 程序发布完后调用图片失败 我的未发布的程序里的代码是如下,照片列能正常显示: If e.Col.name= "照片" Then If e.Row.IsNull("图片名称") Then e.Row("照片")=Nothing Else e.StartDraw() e.Graphics.DrawImage(getimage(projectPath & "RemoteFiles\\涩卡款式\\" & e.Row("图片名称")), e.x + 3,e.y + 3, 100, 100) e.EndDraw() End If End If 但是发布程序以后,用publish里的exe文件开启程序, 照片列drawcell调用失败,请问是路径的问题吗? 那正确的路径应该如何写?
|
-- 作者:大红袍 -- 发布时间:2015/12/23 15:22:00 -- 应该是你RemoteFiles文件夹下,就没有对应的图片才会这样的。
e.StartDraw() e.EndDraw() |