使用c#,winforms读取excel文件

问题描述:

是否可以通过未安装Excel的机器上的winform应用程序读取excel文件???

如果是,如何?若nat,是否有任何替代解决方案???



i想要读取文件并将其内容上传到数据库...

i know我可以在sqlyog或workbench的帮助下直接上传到数据库。但我需要它以程序方式完成..

Is it possible to read a excel file through a winform application on a machine where Excel is not installed???
if yes, how? if nat , is there any altenate solution???

i want to read a file and upload its content to database...
i know i can directly upload to databse with the help of sqlyog or workbench. but i need it to be done programitically..

是的,可以使用第三方库。在此处查看详细信息(开源): http://npoi.codeplex.com/ [ ^ ]
Yes it is possible by using a 3rd party library. See details here (open source): http://npoi.codeplex.com/[^]