编译的时候报错,都无法通过编译:
Assembly ‘Microsoft.Office.Interop.Excel, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c‘ uses ‘Microsoft.Vbe.Interop, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c‘ which has a higher version than referenced assembly ‘Microsoft.Vbe.Interop, Version=11.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c‘ g:\Program Files\Microsoft Visual Studio 10.0\Visual Studio Tools for Office\PIA\Office14\Microsoft.Office.Interop.Excel.dll
目前为止,我碰到的就是Office版本不对应的问题.
version 12 对应的是 Office 2007
version 11 对应的是 Office 2003
Assembly 'Microsoft.Office.Interop.Excel
时间: 2024-10-21 21:35:11