Skip to content

workbook.caller with file on a sharepoint server #215

@sdementen

Description

@sdementen

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:

Calling Workbook(fullname) leads to the stack trace::
Traceback (most recent call last):
  File "C:/.../test.py", line 18, in <module>
    Workbook("https://sharepoint_path/workbook.xlsm")
  File "C:\...\lib\site-packages\xlwings\main.py", line 49, in __init__
    self.xl_app, self.xl_workbook = xlplatform.get_workbook(self.fullname)
  File "C:\...\lib\site-packages\xlwings\_xlwindows.py", line 50, in get_workbook
    xl_workbook = GetObject(fullname)
  File "C:\...\lib\site-packages\win32com\client\__init__.py", line 72, in GetObject
    return Moniker(Pathname, clsctx)    
  File "C:\...\lib\site-packages\win32com\client\__init__.py", line 87, in Moniker
    moniker, i, bindCtx = pythoncom.MkParseDisplayName(Pathname)
pywintypes.com_error: (-2147221020, 'Invalid syntax', None, None)

An additional potential issue is with blank space in the name ==> fullname has it as " " but name in ROT is with a "%20".

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions