C# and Excel interop

后端 未结 3 1911
谎友^
谎友^ 2020-12-06 11:39

One of my users is having an issue when trying to open an Excel file through my C# app.

Everything works ok when I run it from my machine and it works for other user

3条回答
  •  攒了一身酷
    2020-12-06 12:08

    I've come to prefer saving Excel files as XML spreadsheets and then opening them up with System.Xml objects. XML I use a lot for all sorts of things, while Interop is something of a black art to me. It may not be good enough for your needs, but if it is, it is probably a lot easier than tangling with the Interop libraries.

提交回复
热议问题