error message is a bit unfortune: Sub Test Dim oDesktop Dim oDoc Dim mProps() Dim Url oDesktop = createUnoService("com.sun.star.frame.Desktop") Url = "file:///D:/Test\Test.xlsx" ' ok ' Url = "file:///D:/Test/Test.xlsx" oDoc = oDesktop.loadComponentFromURL(Url, "_blank", 0, mProps) End Sub
I don't get a lock error message. I get this: BASIC runtime error. An exception occurred Type: com.sun.star.lang.IllegalArgumentException Message: Unsupported URL <file:///D:/Test\Test.xlsx>: "type detection failed" at /home/user/libreoffice/framework/source/loadenv/loadenv.cxx:187. It says Unsupported URL, so I don't think it's unfortunate. Arch Linux 64-bit, X11 Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community Build ID: 98cf5157d69d9f1692be7f2cac958b1dfb387ca9 CPU threads: 8; OS: Linux 6.2; UI render: default; VCL: kf5 (cairo+xcb) Locale: fi-FI (fi_FI.UTF-8); UI: en-US Calc: threaded Built on 28 March 2023
Created attachment 186292 [details] result with win 10 please have a look at the attachment
I get the same dialog as Oliver with windows 10. It might be a windows only problem. Version: 7.4.2.3 (x64) / LibreOffice Community Build ID: 382eef1f22670f7f4118c8c2dd222ec7ad009daf CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Vulkan; VCL: win Locale: de-DE (de_DE); UI: de-DE Calc: default