Excel programming: exception from HRESULT: 0x800A03EC. at Microsoft.office.Interop

I created a small application that opens, reads, and creates Excel files. The application was written in C #, and I do not know why I get this error message when the application runs on the same computer. I run the same application on my computer and I have no problems.

Can someone help me and tell me why this error occurred?

thanks

+3
source share
3 answers

First of all, I suspect that HRESULT really was 0x800A03EC (it is very important to report the exact number if you say error codes ;-)).

, . , , , "": , , / ( ..).

+5

- ; Excel (http://office.microsoft.com/en-us/excel-help/excel-specifications-and-limits-HP005199291.aspx)

0

, Excel , (.. , ), .

For example, if you have a script trying to set a cell to "==== Fake Note by: fakeuser 6/23/14 14:41", then it will throw an error. To get around this, check the value of the leftmost character to see if it has "=", "+", "-", "/" or "*". If so, just add a space as the first character and the text will be added correctly.

0
source

Source: https://habr.com/ru/post/1702438/


All Articles