C#操作powerpoint出现E_NOINTERFACE错误
C#中操作ppt添加一个幻灯页,出现了如下错误:
Unable to cast COM object of type 'System.__ComObject' to interface type 'Microsoft.Office.Interop.PowerPoint.Slide'. This operation failed because the QueryInterface call on the COM component for the interface with IID'{9149346A-5A91-11CF-8700-00AA0060263B}' failed due to the following error: No such interface supported(Exception from HRESULT:0x80004002(E_NOINTERFACE)).