是在服务器上安装MS Excel或办公室读取Web应用程序Excel文件需要它? [英] Is it required to install MS Excel or Office on server to read an excel file in web application?
问题描述
我的工作,以创建和读取
Web应用程序。 MS Excel中
文件asp.net
我不知道,它需要以服务器
或没有。上安装 Microsoft Excel中
I'm working to create and read MS Excel
file in asp.net
web application.
I'm not sure that it requires to install Microsoft Excel
on server
or not.
我不希望像 MS办公室
等在服务器上安装任何授权产品。
I don't want to install any licensed product on the server like MS office
etc.
请让我知道我可以在不安装 MS Excel中
在服务器上实现该功能还是有必要在服务器上安装MS Excel的?
Please let me know how i can implement this functionality without installing MS Excel
on the server or it is necessary to install MS excel on server?
感谢
推荐答案
这取决于你在做什么,而且很有可能,你需要的是对的 Microsoft Access数据库引擎。
It depends on what you're doing, but more than likely, all you need is the Microsoft Access Database Engine.
此下载将安装一套组件,这些组件方便
现有的Microsoft Office文件,如之间的数据传输
微软的Office Access 2010的(* .MDB和 .ACCDB)文件和Microsoft
Office Excel中2010(的的.xls,* .xlsx和* .xlsb)文件到其他数据
源,如Microsoft SQL Server的。能连接到现有的文字
还支持文件。 ODBC和OLEDB驱动程序安装
应用程序开发人员在开发它们与应用程序中使用
连接到Office文件格式。
This download will install a set of components that facilitate the transfer of data between existing Microsoft Office files such as Microsoft Office Access 2010 (*.mdb and .accdb) files and Microsoft Office Excel 2010 (.xls, *.xlsx, and *.xlsb) files to other data sources such as Microsoft SQL Server. Connectivity to existing text files is also supported. ODBC and OLEDB drivers are installed for application developers to use in developing their applications with connectivity to Office file formats.
修改,以应对
我只是想读取和写入MS Excel文件,但我不希望在服务器上安装任何东西。
I just want to read and write MS excel files but i don't want to install anything on the server.
您可以尝试 EPPlus ,这似乎解决你的问题。虽然我从来没有尝试过。
You can try EPPlus, which seems to solve your problem; though I've never tried it.
EPPlus是一个.NET库,读取和写入Excel中使用开放式办公xml格式(XLSX)2007/2010文件。
EPPlus is a .net library that reads and writes Excel 2007/2010 files using the Open Office Xml format (xlsx).
这篇关于是在服务器上安装MS Excel或办公室读取Web应用程序Excel文件需要它?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!