【发布时间】:2021-01-28 12:18:07
【问题描述】:
打开文件时,我将其上传到服务器,但是打开文件时 Application_DocumentOpen 方法不起作用
如何在文件打开时每 30 秒运行一次上传方法
void Application_DocumentOpen(Microsoft.Office.Interop.Word.Document Doc)
{
System.Timers.Timer timer = new System.Timers.Timer(30000);
timer.Enabled = true;
timer.Elapsed += (sender, e) =>
DocumentEditingSendToServer(Doc.Application.ActiveDocument);
}
【问题讨论】:
标签: c# vsto office-addins word-addins