create excel spreadsheet

前端 未结 4 1466
陌清茗
陌清茗 2021-01-21 15:10

Is there any way to create an excel spreadsheets using VBScript? I can create a text file using a FileSystemObject and use any extension I want, but when I try and download thi

4条回答
  •  梦毁少年i
    2021-01-21 15:34

    I agree with the comments above. I have always done this using Response.ContentType and Response.AppendHeader

    Response.ContentType = "application/vnd.ms-excel"
    Response.AppendHeader "content-disposition", "filename=MySpreadsheet.xls"
    

提交回复
热议问题