以文本方式查看主题 - Foxtable(狐表) (http://foxtable.com/bbs/index.asp) -- 专家坐堂 (http://foxtable.com/bbs/list.asp?boardid=2) ---- 显示图片 (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=139472) |
-- 作者:1498351234 -- 发布时间:2019/8/13 15:44:00 -- 显示图片 老师好: 我用帮助中的例子写代码 想查看如下路径的图片 Dim fl As String = "d:\\web\\" & e.path Dim path As String = fl.replace("d:\\web\\","") If FileSys.FileExists(path) Then e.WriteFile(path) End If case "test\\shmx.htm" With wb.AddInputGroup("form1","ipg22","文件查看") With .AddUploader("up3","图片",True) .AllowAdd = False \'关闭文件上传功能 .AddImage("d:/sxwy_ftp/操作图片/124315_5.jpg") \'这是文件的绝对路径 End With End With 加载后不能显示图片 如果要用相对路径访问该图片该怎样写呢? .AddImage("./../sxwy_ftp/操作图片/124315_5.jpg") 相对路径也不会写,老师帮忙改改,说明书路径这一块看不懂。 [此贴子已经被作者于2019/8/13 15:51:17编辑过]
|
-- 作者:有点蓝 -- 发布时间:2019/8/13 16:03:00 -- 只能使用相对路径,参考:http://www.foxtable.com/mobilehelp/topics/0044.htm |