【发布时间】:2014-12-23 10:06:48
【问题描述】:
我在打开 csv 工作簿时在 lotus 脚本中的计划代理中遇到问题。它只是从 Excel 中打开工作簿并读取数据。
当我手动运行时它工作得很好。它在 workbooks.open 行调度时抛出。
代理设置:允许具有完全管理员权限的受限操作。
代码:
Set xlApp = CreateObject("Excel.Application")
xlApp.Visible = False
xlApp.DisplayAlerts = False
Print "New filepath=" & filepath
xlApp.Workbooks.Open filepath ' Open the CSV file
Set xlWorkbook = xlApp.ActiveWorkbook
Set xlSheet = xlWorkbook.ActiveSheet
文件路径=C:\Temp\transit_15102008.csv
在 log.nsf 中抛出错误
printing: ERROR : Transfer Files agent- Microsoft Office Excel: Microsoft Office Excel cannot access the file 'C:\Temp\transit_15102008.csv'. There are several possible reasons:
• The file name or path does not exist.
• The file is being used by another program.
• The workbook you are trying to save has the same name as a currently open workbook. at line-55
Excel 中只有一个工作表。
我无法找出问题所在。请有人帮我解决。提前致谢。
【问题讨论】:
-
您是否在 Domino 服务器上安装了 MS Office?
-
女士 office 2007 安装在 widows server2008 (Domino 8.5.2) 上。事实上,我正在远程控制服务器并手动运行它。它工作正常。它仅安排在同一台机器上。但抛出上述错误。
-
我也有同样的问题。你找到解决办法了吗?