首页 新闻 会员 周边

windows service 调用 Interop 失败问题

0
悬赏园豆:10 [待解决问题]

在windows service 中 运用 以下代码:

http://stackoverflow.com/questions/2972263/ppt-slides-to-images

将 PowerPoint 的 slide 保存成图片

当 用 Console Project 方式 运行以上代码时 一切正常

但是将代码封装成 windows service 的时候 却报以下错误:

System.Runtime.InteropServices.COMException (0x80004005):

PowerPoint could not open the file.

in Microsoft.Office.Interop.PowerPoint.Presentations.Open(String FileName, MsoTriState ReadOnly, MsoTriState Untitled, MsoTriState WithWindow)

请问有没有解决方案?

Spook的主页 Spook | 初学一级 | 园豆:131
提问于:2015-05-28 17:40
< >
分享
所有回答(2)
0

是不是windows service的启动权限不够?

新的开始 | 园豆:679 (小虾三级) | 2015-05-28 22:50
0

管理员权限试试。

Firen | 园豆:5385 (大侠五级) | 2015-05-29 12:12
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册