I attempt to accomplish this with the following code snippet…
oDoc = StarDesktop.LoadComponentFromUrl(filePath, "_blank", 0, Noargs())
The variable filePath contains the string “file://Gem_Invoices/49S803A.pdf”
But I get the following error…
BASIC runtime error.
An exception occurred
Type: com.sun.star.lang.IllegalArgumentException
Message: Unsupported URL <file://Gem_Invoices/49S803A.pdf>: "type detection failed".