|
[广告] Excel易用宝 - 提升Excel的操作效率 · Excel / WPS表格插件 ★ 免费下载 ★ ★ 使用帮助★
本帖最后由 wjb305945078 于 2020-3-15 21:36 编辑
Imports MySql.Data.MySqlClient在利用Vsto开发时Word Com加载项时,需利用mysql,已添加mysql.data.dll程序集引用,且代码中如下:
sub Ceshi()
Dim MyConn As New MySqlConnection
Dim MyCmd As New MySqlCommand
Dim MyRead As MySqlDataReader
……
end sub
编译过程中出现:
warning BC40056: Namespace or type specified in the Imports 'MySql.Data.MySqlClient' doesn't contain any public member or cannot be found. Make sure the namespace or the type is defined and contains at least one public member. Make sure the imported element name doesn't use any aliases.
error BC30002: Type 'MySqlConnection' is not defined.请问如何解决呢?谢谢大家!
|
|
|