问题描述
我已经按照Visual Studio中的this tutorial创建了一个MS Access加载项
我使用这两种方法来实现我的逻辑,但是当我建立设置时,它会打开MsAccess,但是我放置在代码中的断点却没有命中。
private void ThisAddIn_Startup(object sender,System.EventArgs e)
{
File.Create(@"D:\AddIn.txt");
MessageBox.Show("Start");
}
private void ThisAddIn_Shutdown(object sender,System.EventArgs e)
{
}
#region VSTO generated code
/// <summary>
/// required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InternalStartup()
{
this.Startup += new System.EventHandler(ThisAddIn_Startup);
this.Shutdown += new System.EventHandler(ThisAddIn_Shutdown);
}
我已经通过创建.reg文件注册了该加载项,并通过构建后命令将其与我的解决方案绑定
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Office\Access\Addins\MyAddIn]
"Description"="MSAccessAddIn"
"FriendlyName"="MsAccessAddIn"
"LoadBehavior"=dword:00000003
"Manifest"="C:\\Temp\\MsAccessAddIn\\bin\\Debug\\MyAddIn.vsto|vstolocal"
是否有用于创建和使用Ms Access加载项的完整指南。 谢谢
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)