【发布时间】:2012-06-28 16:54:44
【问题描述】:
我在 C# winform 中使用 Microsoft.Office.Interop.Excel,但我不知道如何创建新的 Excel 工作簿。我已经尝试了文档中的所有内容,但我得到的只是错误。 Workbook wb = new Workbook() 编译得很好,但会引发难以理解的运行时错误。
【问题讨论】:
-
什么是“无法理解的运行时错误”?这里的人可能会理解...
-
这里是错误信息:
Retrieving the COM class factory for component with CLSID {00020819-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
标签: c# winforms excel com-interop winforms-interop