标签:创建文件夹 uri mic profile rop setting active arch arc
程序在Windows Server 2012 R2调用Word组件正常,但是换到Windows Server 2008 R2之后,程序异常。
Microsoft.Office.Interop.Word.Application word = new Microsoft.Office.Interop.Word.Application();
Document doc = word.Documents.Open(filename);
//doc is null
创建文件夹,C:\Windows\System32\config\systemprofile\Desktop
Open DCOM Config Settings:
Start -> dcomcnfg.exe
Computer
Local Computer
Config DCOM
Search for Microsoft Word 97-2003 Documents -> Properties
Tab Identity, change from Launching User to Interactive User
https://stackoverflow.com/questions/10837437/interop-word-documents-open-is-null
Interop.Word Documents.Open is null
标签:创建文件夹 uri mic profile rop setting active arch arc
原文地址:https://www.cnblogs.com/talentzemin/p/11362214.html