What is the problem caused by Excel version?

xiaoxiao2021-03-14  181

Today, I updated Source for PM, I met a weird problem when configuring the environment:

The project is quoted in the project, which is compiled to say that the namespace is not clear, what is going on?

I was a bit anxious at the time, open Google I want to search, I don't know the keyword.

What is the most original method: Open the .NET IDE, F2 in the PM environment, actually really discovered the problem, it really is the namespace is wrong. The Excel namespace of our development environment is Excel, but the PM is actually Microsoft.Office.Interop.Excel, but the named object is referenced to Excel Object 11! How can there be a difference in namespace? !

Not solve ...

Later, I opened the Excel of the PM environment directly, see help, and found that it is excel 2003 SP1, and our development environment is Excel 2003 SP2, is it because this? !

The problem is solved, but I always feel that it is not very thorough! Continue to pay attention ...

转载请注明原文地址:https://www.9cbs.com/read-129289.html

New Post(0)