且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用C#打开MS Outlook

更新时间:2023-02-07 23:21:34





试试这个:



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