Foxtable(狐表)用户栏目专家坐堂 → SaveToPdf 错误


  共有2936人关注过本帖平板打印复制链接

主题:SaveToPdf 错误

帅哥哟,离线,有人找我吗?
Grandraw
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:幼狐 帖子:92 积分:1027 威望:0 精华:0 注册:2018/5/31 19:09:00
SaveToPdf 错误  发帖心情 Post By:2018/9/26 7:49:00 [只看该作者]

老师好,
我们的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,删除注册表键值等。
实在不知道怎么办才好。特此求助。谢谢




 回到顶部
总数 15 1 2 下一页