Excel编程:HRESULT异常:0x800A03EC。在Microsoft.office.Interop [英] Excel Programming: Exception from HRESULT: 0x800A03EC. at Microsoft.office.Interop
问题描述
我创建了一个打开,读取和创建Excel文件的小应用程序。
该应用程序已写入C#,我不知道为什么当应用程序在一台计算机上运行时,我收到此错误消息。
我在我的电脑上运行相同的应用程序,我没有任何问题。
I have created a small application which opens,reads and creates Excel files. The app has been written in C# and I don't know why I get this error message when the application is running in one computer. I have run the same applicaiton on my computer and I don't have any problem.
有人可以帮助我,让我知道为什么会发生这个错误?
Can somebody help me and let me know why happen this error?
谢谢
推荐答案
首先,我怀疑HRESULT是真的0x800A03EC(如果你正在说错误代码,传达确切的数字是很重要的; - ))。
First of all, I suspect the HRESULT was really 0x800A03EC (it's kinda important to communicate the exact number if you are talking error codes ;-)).
这个错误通常意味着一个或多个公式包含错误。在一台机器而不是其他机器上工作的公式的主要原因通常是区域设置:检查该机器是否具有不同的数字,日期和/或货币格式设置(逗号等)。
What this error usually means is that one or more formula contains an error. The main reason for a formula working on one machine and not on others is usually "locale": check if that machine has different formatting settings for numbers, dates and/or currencies (comma v.s. period, etc).
这篇关于Excel编程:HRESULT异常:0x800A03EC。在Microsoft.office.Interop的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!