如何阅读excel表? [英] How can read an excel sheet?

查看:116
本文介绍了如何阅读excel表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Retrieving the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).

..当我在服务器上运行时,项目在使用

..when i'm running on server,project showing this error when uploading an excel sheet using

Microsoft.Office.Interop.Excel





我尝试过:



当我在服务器上运行时,项目在使用Microsoft.Office.Interop.Excel



What I have tried:

when i'm running on server,project showing this error when uploading an excel sheet using Microsoft.Office.Interop.Excel

推荐答案

上传excel表时显示此错误。)Microsoft Office应该是安装在你的服务器上。



2)在服务器环境中使用Office互操作通常是一个坏主意。



3)尝试使用以下Excel库:EPPlus-在服务器上创建高级Excel电子表格 - 主页 [ ^ ]
1) Microsoft Office should be installed on your server.

2) It is generally a bad idea to use Office interop in a server environment.

3) Try using Excel libraries like : EPPlus-Create advanced Excel spreadsheets on the server - Home[^]


这篇关于如何阅读excel表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆