你好我正在搜索的是在系统中安装的Outlook吗?我在Java工作。我找到了一些链接,但我不能达到我的目标。我发现一种方法 “类型officeType = Type.GetTypeFromProgID(”Outlook.Application“);”,但我不知道我应该导入哪个包。 我写下面的代码,但它给了我错误。如何检查outlook是否在系统中安装或不使用java?
Type officeType = Type.GetTypeFromProgID("Outlook.Application");
if (officeType == null)
{
// Outlook is not installed.
// Show message or alert that Outlook is not installed.
}
else
{
// Outlook is installed.
// Continue your work.
}
有助于解决此问题。在此先感谢...
谷歌搜索“GetTypeFromProgID”的第一个结果是http://msdn.microsoft.com/en-us/library/vstudio/system.type.gettypefromprogid。在java中使用* that *方法会遇到一些麻烦。 –
@OlegEstekhin是否有可能使用java? –