如何使用C#打开MS Outlook [英] how to open MS Outlook using C#
本文介绍了如何使用C#打开MS Outlook的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用c#打开MS Outlook。
我在项目中包含了参考库。
谢谢和问候,
Balkrishna Raut
Hi,
How to open MS Outlook using c#.
I have included reference library in the project.
Thanks & Regards,
Balkrishna Raut
推荐答案
试试这个:
Hi,
try this:
private void isOutlook()
{
Microsoft.Win32.RegistryKey key =
Microsoft.Win32.Registry.LocalMachine.OpenSubKey("Software\\microsoft\\windows\\currentversion\\app paths\\OUTLOOK.EXE");
string path = (string)key.GetValue("Path");
if( path != null)
System.Diagnostics.Process.Start("OUTLOOK.EXE");
else
MessageBox.Show("There is no Outlook in this computer!", "SystemError", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
由于microsoft outlook故障排除,您可以打开ms outlook文件
应用这篇文章 http://www.outlooktroubleshooting.oemailrecovery.com
You may open ms outlook files owing to microsoft outlook troubleshooting
Apply this article http://www.outlooktroubleshooting.oemailrecovery.com
这篇关于如何使用C#打开MS Outlook的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文