Foxtable(狐表)用户栏目专家坐堂 → 下载文档


  共有2231人关注过本帖树形打印复制链接

主题:下载文档

帅哥哟,离线,有人找我吗?
有点甜
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:版主 帖子:85326 积分:427815 威望:0 精华:5 注册:2012/10/18 22:13:00
  发帖心情 Post By:2018/8/31 14:26:00 [显示全部帖子]

我测试没问题,如下代码

 

Dim fl As String = "c:\web\" & e.path '合成含路径的文件名
If filesys.FileExists(fl)
    Dim idx As Integer = fl.LastIndexOf(".")
    Dim ext As String  = fl.SubString(idx)
    Select Case ext
        Case ".doc",".jpg",".gif",".png",".bmp",".wmf",".js",".htm",".html",".css",".zip",".rar" '这里加上了js扩展名
            e.WriteFile(fl)
            Return '这里必须返回
    End Select
End If


Select Case e.Path
    Case "test.htm", ""
        Dim wb As New WeUI

        With wb.AddListGroup("", "lsg3", "增加跳转的列表")
            .Add("ls5","新浪主页", "", "/test/test.doc")
            .Add("ls6","网易主页", "", "/images/001.jpg")
        End With

        e.WriteString(wb.Build)
End Select

 

 


 回到顶部