Trouble to open XLS file with oledb

非 Y 不嫁゛ 提交于 2019-12-18 09:34:01

问题


When I try to open an xls file, I get this error :

Rhe Microsoft Office Access database engine cannot open or write to the file ''. 
It is already opened exclusively by another user, or you need permission to view and write its data.

I do several access but I close and dispose the connection all the time. It's on my DEV PC. On the server I get this error : Don't have read/write access on the file. This file is on \networkdisk\directory1\Files

I'll use "ACE.OLEDB" because Jet is not running on x64 server.

Any idea ?

Thanks,


回答1:


In my case it was a file stream that had not been closed.




回答2:


in our case, a client uploaded an excel file that is password protected



来源:https://stackoverflow.com/questions/7658429/trouble-to-open-xls-file-with-oledb

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!