Foxtable(狐表)用户栏目专家坐堂 → Hublider打包app下载不起excel


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

主题:Hublider打包app下载不起excel

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


加好友 发短信
等级:四尾狐 帖子:808 积分:6213 威望:0 精华:0 注册:2014/3/23 23:02:00
  发帖心情 Post By:2021/3/20 23:10:00 [显示全部帖子]

编写了downexcl.htm,通过浏览器可正常下载excel文件,打包APP后,下载的文件是downexcl.htm,求解,谢谢?
....
Dim dt As DataTable = cmd.ExecuteReader
Dim Book As New XLS.Book
Dim Sheet As XLS.Sheet = Book.Sheets(0)
For c As Integer = 0 To nms.Length - 1
    Sheet(0, c).Value = nms(c)
Next
For r As Integer = 0 To dt.DataRows.Count - 1
    For c As Integer = 0 To nms.Length - 1
        Sheet(r + 1, c).Value = dt.Datarows(r)(nms(c))
    Next
Next
Dim td As Date= Date.Today
Dim fn As String = td & "工作单.xls"
e.WriteBook(book,fn ,False)

 回到顶部