Hi all,
we allow customers to load excel workbooks from ‘internet’ as well (such as sharepoint etc).
Now they get the following error:
Message: "The given path's format is not supported."
Source: "mscorlib"
StackTrace: " at System.Security.Permissions.FileIOPermission.EmulateFileIOPermissionChecks(String fullPath)" & vbCrLf & " at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)" & vbCrLf & " at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share)" & vbCrLf & " at GemBox.Spreadsheet.LoadOptions." & ChrW(2) & "(ExcelFile " & ChrW(2) & ", Stream " & ChrW(3) & ", String " & ChrW(5) & ", Boolean " & vbBack & ")" & vbCrLf & " at GemBox.Spreadsheet.LoadOptions." & ChrW(3) & "(String " & ChrW(2) & ")" & vbCrLf & "
The line the error occurs is: gmWorkbook0 = ExcelFile.Load(filename)
where filename is “https://xxxxxxxxxxxxxxxx-my.sharepoint.com/personal/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx/Documents/yyyyyyyyyyyy/workbookfilename.xlsm”
thanks in advance.
Arie