小编Sus*_*hra的帖子

文件打开时出现Win32 :: OLE错误

我试图在Windows/apache服务器上的perl中使用Win32 :: OLE从我的网页打开一个.xlsm文件.

在研究这个问题时,遇到了以下可能的解决方案:

  1. 很少有人通过设置他们的绝对路径来解决它.这对我没用.

  2. 设置脚本的权限以具有访问服务器上的文件的权限.我不知道该如何解决这个问题.但是,我通过Windows sspi验证我的用户,并将有一个用户ID.是否会在Win32 :: OLE上验证该用户标识的文件访问权限?

但是,我可以使用文件句柄打开文件.我之前从我的网页上使用文件句柄读取/写入了此服务器位置上的文件.win32 :: OLE权限是否不同?

错误是:

Microsoft Excel cannot access the file 'C:\test.xlsm'. 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.

Win32::OLE(0.1709) error 0x800a03ec
    in METHOD/PROPERTYGET "Open"
Run Code Online (Sandbox Code Playgroud)

感谢任何输入.

apache excel perl win32ole

1
推荐指数
1
解决办法
2824
查看次数

标签 统计

apache ×1

excel ×1

perl ×1

win32ole ×1