似乎找不到任何简单的VBA教程,可以将自定义组添加到Outlook 2010功能区的"主页"选项卡中.
不应该是一些简单的步骤,包括在"主页"选项卡中遍历对象,以编程方式添加具有控件等的组,或重新定义描述"主页"选项卡的XML.
是否有任何示例VBA代码或文章有这个简单的例子?具体来说,我正在尝试添加一个自定义组,其中包含1个文本字段和1个触发自定义宏的按钮.
干杯,戴夫--Tindind在Fedang#outlook-2010-vba
我正在使用VSTO,VS 2010和Outlook 2010开发Outlook解决方案.
我想覆盖Outlook的发送行为的默认功能.
这是要求.
当用户点击发送按钮时,我必须检查它是否是短信 - "IPM.Note.Mobile.SMS".如果它是一个SMS,那么我必须提供我的自定义实现发送.如果它不是SMS,则默认发送行为.
对于自定义发送部分,我必须使用自己的Web服务并处理它.
我想要的是一种在Outlook 2010中覆盖默认发送功能的方法/方法.
我在MSDN,检查器包装器和执行自定义业务规则上阅读了一些文章,但我没有得到我想要的.我想要一个纯粹的C#解决方案而不是第三方dll喜欢兑换.我试图尽可能具体,我希望相同:)
请帮帮我:D谢谢,
问候 - 山姆
我正在使用 Visual Studio 2008 (.Net 3.5) 创建一个要在 Outlook 2010 中使用的插件。我定义了两条单独的丝带。其中一个用于创建附件的上下文菜单,另一个用于向 TabReadMessage 添加按钮。
我对如何加载它们感到困惑。我在 ThisAddIn.vb 中有一个函数,它不可能执行我想要的操作 - 加载两个功能区:
Protected Overrides Function CreateRibbonExtensibilityObject() As _
Microsoft.Office.Core.IRibbonExtensibility
Return New RibbonAttachAttachmentToPO()
Return New RibbonOutlook14ReadMail()
End Function
Run Code Online (Sandbox Code Playgroud)
这个问题的最佳解决方案是什么?
我想从我的C#winforms应用程序中打开Outlook中的特定电子邮件.
目前我有以下代码:
//...Get Folder & Entry ID for last Email in Sent Box
Outlook.Application myApp = new Outlook.ApplicationClass();
Outlook.NameSpace mapiNameSpace = myApp.GetNamespace("MAPI");
Outlook.MAPIFolder mySentBox = mapiNameSpace.GetDefaultFolder(Outlook.OlDefaultFolders.olFolderSentMail);
Outlook.MailItem myMail = ((Outlook.MailItem)mySentBox.Items[1]);
string guid = myMail.EntryID;
string folderEntryID = mySentBox.EntryID;
string folderStoreID = mySentBox.StoreID;
string mailAddressee = myMail.To;
MessageBox.Show(mailAddressee);
//...Attempt to Open that Email at a later date
Outlook.MAPIFolder getFolder = (Outlook.MAPIFolder)mapiNameSpace.GetFolderFromID(folderEntryID, folderStoreID);
Outlook.MailItem getItem = (Outlook.MailItem)getFolder.Items.Find("[EntryID] = " + guid);
getItem.Display();
Run Code Online (Sandbox Code Playgroud)
第一部分代码的第二部分将在不同的时间运行,尽管它们目前处于相同的测试方法中.
第一部分获取最近从Outlook发送的电子邮件的相关ID.这部分似乎可以作为我内置的Messagebox的证据.
然而,第二部分不起作用,我正在努力找到正确的代码来访问并打开已在第一部分中获取其ID和文件夹位置的特定mailItem.
任何人都能为我完成这个小项目.
我想创建 Outlook 2010 的加载项以将所选邮件的 Message-Id 标头发送到我的应用程序,如何访问 Outlook 2010 邮件项目中的 Message-ID 标头?
我刚刚安装了Visual Studio Professional 2013并希望为Outlook 2010编写一个添加项,但是只有一个选项可以启动Outlook 2013添加的新项目.当我在web选项下搜索更多模板时我不能找到我想要的东西.有没有办法在不安装不同版本的Visual Studio的情况下创建Outlook 2010?或者2013年是否会在2010年增加工作?
我有以下代码部分,它是我正在开发的自动回复系统的一部分.据我所知,它应该使用换行符格式化电子邮件的正文,但是,如附带的屏幕截图所示,它不会.有人会指出我出错的地方吗?
With NewForward
.Subject = "'TEST' Hazard report reciept number: HAZ" & IDnumber
.To = strSender
.BCC = "xxxxxxxxxxxx"
.HTMLBody = "Please accept this email as confirmation that xxxx has received your road defect notification. xxxxx will investigate and action your notification according to priority and to ensure public safety. For further information, please phone xxxxx on 4221 6111 and quote reference number " & vbCrLf & IDnumber & vbCrLf & "Your original report can be seen below:" …Run Code Online (Sandbox Code Playgroud) 我想自定义在OUtlook 2010和2013中单击"主页"选项卡时显示的功能区.
问题 -
我绝对不知道从哪里开始.任何链接,文档或示例都会有所帮助.我一直在经历msdn,但它都说自定义功能区,这不符合我的目的.我需要修改现有的功能区.
我正在开发一个 Microsoft Outlook 插件,我在“插件”选项卡名称中添加了一个按钮OPENISMS。我可以看到该按钮,但是单击时事件不会被触发。我不知道它为什么会这样。请在下面找到添加按钮并向其附加事件的代码。任何帮助将不胜感激。
private void AddButtonToNewDropdown()
{
Office.CommandBar commandBar = this.Application.ActiveExplorer().CommandBars["Standard"];
Office.CommandBarControl ctl = commandBar.Controls["&New"];
if (ctl is Office.CommandBarPopup)
{
Office.CommandBarButton commandBarButton;
Office.CommandBarPopup newpopup = (Office.CommandBarPopup)ctl;
commandBarButton = (Office.CommandBarButton)newpopup.Controls.Add(1, missing, missing, missing, true);
commandBarButton.Caption = "OpenISMS";
commandBarButton.Tag = "OpenISMS";
commandBarButton.FaceId = 6000;
//commandBarButton.Enabled = false;
commandBarButton.OnAction = "OpenISMSThruMail.ThisAddIn.ContextMenuItemClicked";
commandBarButton.Click += new Office._CommandBarButtonEvents_ClickEventHandler(ContextMenuItemClicked);
}
}
private void ContextMenuItemClicked(CommandBarButton Ctrl, ref bool CancelDefault)
{
if (currentExplorer.Selection.Count > 0)
{
object selObject = currentExplorer.Selection[1];
if (selObject is MailItem)
{
// …Run Code Online (Sandbox Code Playgroud) 我在我正在编码的电子邮件的按钮内得到了这个笔画。它只出现在 Outlook 2007、2010 和 2013 中,我不知道如何删除它?有任何想法吗?
代码:
`<a href="http://buttons.cm" style="color: #ffffff; background: #a52023;
border: 1px solid #a52023; display: inline-block; font-family: tahoma;
font-weight: 900; letter-spacing: 2px; font-size: 16px; border-radius: 80px;
line-height: 60px; text-align: center; text-decoration: none; width: 275px;
-webkit-text-size-adjust: none; mso-hide: all;">GET FREE WORKWEAR</a>`
Run Code Online (Sandbox Code Playgroud) outlook-2010 ×10
outlook ×3
vsto ×3
vba ×2
.net ×1
add-in ×1
c# ×1
c#-4.0 ×1
html ×1
html-email ×1
outlook-2007 ×1
outlook-vba ×1
ribbon ×1