从Outlook自动化Office进程 [英] Automating An Office Process from Outlook

查看:99
本文介绍了从Outlook自动化Office进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家......


我不知道Visual Studio Tools for Office是否是完成我想要做的事情的适当方法。  我希望它是,但我可能是错的。  如果是,我会很感激一些指导。


我希望自动化流程。  当来自特定人/电子邮件地址的电子邮件包含附件和匹配的"模式"时主题行到达我的Outlook收件箱,我希望启动一个流程(即可执行文件),它将花费
附件并处理它。


这可能吗?.. 。 请指教。


如果是的话,你能给我一些指导吗?...谢谢!

解决方案


您可以创建一个Outlook VSTO加载项并处理
Application.NewMail事件(Outlook)
Items.ItemAdd事件(Outlook) ,以便在收到邮件后自动执行某些流程。


您可以看到以下样本:


< p style ="margin:0in; font-family:Calibri; font-size:11.0pt"> 如何:以编程方式保存Outlook电子邮件中的附件


此示例在收件箱中收到邮件时将电子邮件附件保存到指定的文件夹。


如何:以编程方式执行收到电子邮件时的操作


此示例在用户收到电子邮件时执行自定义操作。


问候,



Hi, everybody...

I don't know if Visual Studio Tools for Office is the appropriate means to accomplish what I wish to do.  I'm hoping it is, but I could be wrong.  If is it, I would appreciate some guidance.

I wish to automate a process.  When an e-mail from a specific person/e-mail address containing an attachment and a matching "pattern" subject line arrives in my Outlook Inbox, I wish to initiate a process (i.e., an executable) that will take the attachment and process it.

Is that possible?...  Please advise.

If so, can you kindly provide me some guidance?...  Thanks!

解决方案

Hi,

You could create an Outlook VSTO Add-in and handle events like Application.NewMail Event (Outlook) or Items.ItemAdd Event (Outlook) to automate some process after receiving mails.

You could see samples from:

How to: Programmatically Save Attachments from Outlook E-Mail Items

This example saves e-mail attachments to a specified folder when the mail is received in the inbox.

How to: Programmatically Perform Actions When an E-Mail Message Is Received

This example performs custom actions when the user receives an e-mail message.

Regards,

Celeste


这篇关于从Outlook自动化Office进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆