-
-
Notifications
You must be signed in to change notification settings - Fork 499
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
workbook.caller with file on a sharepoint server #215
Comments
Probably the same issue as this one #192 - I never got around to testing it one these platforms, but your observation is probably part of the issue... |
Googling the stack trace led me to https://bitbucket.org/cherrypy/cherrypy/issues/194/error-using-win32comclientgetobject-with mentioning some CoInitialise call (and other but very old posts from 2001) |
A solution would be to bypass GetObject (ie if the latter throws an exception) and get the object directly from the ROT by comparing the name in the ROT to the the fullname (module some encoding/decoding of the strings re %20 and other discrepancies). Would this work ? |
I guess pywin32 hasn't caught up with the onedrive/sharepoint URLs. Maybe it's worth opening an issue there. However, the changes I made for #203, should also resolve these issues - given the workbook is opened in the first instance. |
although that obviously wouldn't help if you want to make a connection from Python to Excel... |
The bug is perhaps deeper as a GetObject in vba from excel also fails if I On Saturday, August 22, 2015, Felix Zumstein notifications@github.com
|
Resolved with HWND refactor, as confirmed on #235 |
I can't succeed in using xlwings with an excel workbook on sharepoint (ie not checked out locally).
I see the file on the ROT with a fullname = "https://sharepoint_path/workbook.xlsm"
Calling Workbook(fullname) leads to the stack trace:
An additional potential issue is with blank space in the name ==> fullname has it as " " but name in ROT is with a "%20".
The text was updated successfully, but these errors were encountered: