老师好,我们的foxtable版本是2018-9-9开发版。windows7 英文版,office365企业版最新版。
执行下面代码,每次都失败。
Dim Book As New XLS.Book("C:\Users\qs1\Desktop\FileMonitor\J161018-999.xls")
Dim fl As String = "C:\Users\qs1\Desktop\FileMonitor\J169.pdf"
Book.SaveToPDF(fl) '保存为PDF文件
错误提示如下:
.NET Framework 版本:2.0.50727.8793
Foxtable 版本:2018.9.9.1
错误所在事件:自定义函数test
详细错误信息:
Exception has been thrown by the target of an invocation.
Unable to cast COM object of type 'Microsoft.Office.Interop.Excel.ApplicationClass' to interface type 'Microsoft.Office.Interop.Excel._Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{000208D5-0000-0000-C000-000000000046}' failed due to the following error: Interface not registered (Exception from HRESULT: 0x80040155).
在论坛上搜索了所有帖子,除了重装操作系统,试了所有方法,包括升级foxtable,重装office365,删除注册表键值等。
实在不知道怎么办才好。特此求助。谢谢