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


  共有1671人关注过本帖平板打印复制链接

主题:自动下载

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


加好友 发短信
等级:八尾狐 帖子:1942 积分:14925 威望:0 精华:0 注册:2016/4/28 9:58:00
自动下载  发帖心情 Post By:2017/2/28 9:58:00 [只看该作者]

Dim web3 As WinForm.WebBrowser = e.Form.Controls("WebBrowser1")
If FileSys.FileExists(ProjectPath & "remotefiles\kmzb\web\shengji\yb\2.xlsx") = False Then
    Dim ftp1 As New FtpClient
    ftp1.Host="host138.101.sql.s"
    ftp1.Account = "kmb"
    ftp1.Password = "17d1ce8a"
    ftp1.UTF8 = True
    If ftp1.Download("\kmzb\web\shengji\yb\2.xlsx", ProjectPath & "remotefiles\kmzb\web\shengji\yb\2.xlsx") Then
        web3.address = ProjectPath & "remotefiles\kmzb\web\shengji\yb\2.xlsx"
    Else
        messagebox.show("下载失败")
    End If
Else
    
    web3.address = ProjectPath & "remotefiles\kmzb\web\shengji\yb\2.xlsx"
End If

老师我在afterload中用上面代码是想在打开时自动下载样表,显示百网页浏览器中,在项目中可以,但发布后出现下载失败,请问是什么原因,如何改?

 回到顶部