简体   繁体   English

在Visual Studio 2012 Professional中创建Outlook 2007/2003加载项

[英]Create Outlook 2007/2003 add-in in Visual Studio 2012 Professional

Is there any way to create add-in for Outlook 2007/2003 in Visual Studio 2012 (C#)? 有什么方法可以在Visual Studio 2012(C#)中为Outlook 2007/2003创建加载项吗? So far I found that it should be possible and I just need to remove references from build-in 2010 add-in. 到目前为止,我发现应该可行,并且只需要从内置2010加载项中删除引用即可。 Also tried to download some packages for older VS without success. 还尝试为旧版VS下载一些软件包,但没有成功。 After many attempts, during adding .dll file to Outlook 2007, I am still receiving error, that it is not add-in for Outlook 2007. After all, I doubt a lot that I can do some add-in for old Outlook 2003 if I am not able to do it for 2007. It would enough for this time to force 2007 add some add-in with only MessageBox on startup. 经过多次尝试,在将.dll文件添加到Outlook 2007的过程中,我仍然收到错误消息,说它不是Outlook 2007的加载项。毕竟,我怀疑我是否可以为旧的Outlook 2003做一些加载项我无法在2007年做到这一点。这次足以迫使2007年在启动时仅使用MessageBox添加一些加载项。

You can try to use this library NetOffice . 您可以尝试使用此库NetOffice I'm using it and is very good. 我正在使用它,非常好。

Even if it does not fits your needs you can dig a little in the code and try to understand how they do it. 即使它不符合您的需求,您也可以在代码中进行一些挖掘,并尝试了解他们是如何做到的。 They have nice examples. 他们有很好的例子。

BTW, If you are using VS express edition you cannot develop Office add-ins without a library like NetOffice. 顺便说一句,如果您使用的是VS Express Edition,则没有NetOffice之类的库就无法开发Office加载项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM