So I really can't use Excel Object Model to be used server-side?

前端 未结 3 1008
旧时难觅i
旧时难觅i 2020-12-18 11:40

I\'m trying to develop a c#/asp.net application to extract data from a SQL server and have it formatted in an excel spreadsheet. I have been practicing with excel object mod

3条回答
  •  北海茫月
    2020-12-18 12:09

    You 'can' use Excel automation on the server side. However you will be breaching licences ,may run into security problems and generally experience other odd behaviour, especially if you have more than one user using it at a time. I would suggest that you dont do it.

    1. If the data you want to write is simple enough just do it as a csv

    2. If not and you really have to write a spreadsheet look for a 3rd party component that writes excel files. I only know of one off the top of my head and thats Aspose.Cells, but that is quite expensive.

提交回复
热议问题