当我运行excel gen msg时,由于以下错误而导致组件的COM类工厂失败,因为以下错误:80040154类未注册)。 [英] When I run excel gen msg was occur rev the COM class factory for component with CLSID {00024500-0000-0000-C000-000000000046} failed due to the following error: 80040154 class not registered ).

查看:88
本文介绍了当我运行excel gen msg时,由于以下错误而导致组件的COM类工厂失败,因为以下错误:80040154类未注册)。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助

i继承Interop.excel,但Microsoft Office不能安装在My Pc.Now我做什么。



我尝试了什么:



帮助我 - 如何处理上述问题

Pls Help
i Inherit the Interop.excel but Microsoft Office not install in My Pc.Now What i do.

What I have tried:

Help me - How To Handle the Above mentioned Problem

推荐答案

您可以尝试安装Office。



要使用Interop.Excel,您必须在运行该应用程序的计算机上安装Excel(以及正在构建它。



如果您不想安装Excel,那么您将需要使用另一种操作电子表格的方法,例如OpenXML。



这里有一些建议从C#创建Excel(.XLS和.XLSX)文件 [ ^ ] - 它不仅适用于C#
You could try installing Office.

To use Interop.Excel you must have Excel installed on the machine that is running the application (as well as the one that is building it).

If you don't want to install Excel then you will need to use an alternative method of manipulating the spreadsheets e.g. OpenXML.

There are some suggestions here Create Excel (.XLS and .XLSX) file from C#[^] - it's not just for C#


如果这是网络应用程序,不要打扰。您无法在Windows服务,ASP.NET应用程序或任何其他没有人登录控制台的应用程序中使用Office Interop来使用该应用程序。
If this is a web application, don't bother. You cannot use Office Interop in a Windows Service, ASP.NET app, or any other app where there isn't someone logged into the console to use the app.


这篇关于当我运行excel gen msg时,由于以下错误而导致组件的COM类工厂失败,因为以下错误:80040154类未注册)。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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