当出现已下异常时: 

“this.axSpreadsheet1.DataSource = null;”

Error 1 The type 'msdatasrc.DataSource' is defined in an assembly that is not referenced. You must add a reference to assembly 'MSDATASRC, Version=7.0.3300.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. 

Spreadsheet引用异常解决

解决办法:

1.找到目录:C:\Windows\assembly\GAC\MSDATASRC\7.0.3300.0__b03f5f7f11d50a3a

2.引用 MSDATASRC.dll

Spreadsheet引用异常解决

 

然后就是:Build succeeded !

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-04-14
  • 2021-08-16
  • 2021-11-30
  • 2021-11-27
  • 2021-12-01
  • 2021-07-31
猜你喜欢
  • 2021-05-19
  • 2022-12-23
  • 2022-12-23
  • 2022-01-22
  • 2021-09-14
相关资源
相似解决方案