create excel spreadsheet

前端 未结 4 1467
陌清茗
陌清茗 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条回答
  •  南方客
    南方客 (楼主)
    2021-01-21 15:31

    The best and fastest way, without using Excel.application on the server, which is really not recommended, is to generate an Excel Xml file. The only feature you won't be able to do is insert a picture.

    Unlike using html table, you'll be able to support native data in excel (like date), and you'll be able to format, insert formula, ...

    Save your excel as Excel XML and see the generate XML file. This is little bit tricky, but works very well.

提交回复
热议问题