非英语Outlook:如果对文档进行了更改,Outlook将挂起。
我遇到了一个在Outlook 2013的英文版中无法复制的问题 如果我抓取邮件项目的非英语Outlook:如果对文档进行了更改,Outlook将挂起。,outlook,office-interop,outlook-addin,Outlook,Office Interop,Outlook Addin,我遇到了一个在Outlook 2013的英文版中无法复制的问题 如果我抓取邮件项目的Document.Content并更改其Text属性,则在关闭检查器后,Outlook将挂起,我将不得不使用任务管理器终止该进程 这是我正在运行的代码: class Program { public Program() { Outlook.Application appOutlook; appOutlook = (Ou
Document.Content
并更改其Text
属性,则在关闭检查器后,Outlook将挂起,我将不得不使用任务管理器终止该进程
这是我正在运行的代码:
class Program
{
public Program()
{
Outlook.Application appOutlook;
appOutlook = (Outlook.Application)System.Runtime.InteropServices.Marshal.GetActiveObject("Outlook.Application");
Outlook.Inspector insp = appOutlook.ActiveInspector();
Word.Document doc = insp.WordEditor;
if (doc.ProtectionType != Word.WdProtectionType.wdNoProtection)
{
doc.Unprotect();
}
doc.Content.Text = "test";
Console.ReadLine();
}
static void Main(string[] args)
{
Program program = new Program();
}
}
同样,这在英语中也能顺利运行,但在德语和其他语言中也会挂起应用程序
我注意到关闭阅读窗格会阻止Outlook挂起。
任何帮助都将不胜感激 将WWLIB.dll更改为最新版本解决了此问题