我使用 C#.NET 开发了一个表单来将一些信息导出到文档 MS.Word ,我在另一台电脑(客户)中遇到了这个错误:
System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {000209FF-0000-0000-C000-000000000046} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandleInternal& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.RuntimeType.CreateInstanceDefaultCtor(Boolean publicOnly, Boolean skipCheckThis, Boolean fillCache, StackCrawlMark& stackMark)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at System.Activator.CreateInstance(Type type)
at ExtraTutoManager.frm_Filter.saveAsWord() in D:\coure du soire gestion\visual studio project\ExtraTutoManager\ExtraTutoManager\frm_Filter.cs:line 56
at ExtraTutoManager.frm_Filter.btn_export_Click(Object sender, EventArgs e) in D:\coure du soire gestion\visual studio project\ExtraTutoManager\ExtraTutoManager\frm_Filter.cs:line 647
客户必须满足哪些先决条件才能避免此错误?是否需要在客户设备上安装MS.Office ?