StarDesktop object /text/sbasic/shared/stardesktop.xhp
StarDesktop API; Desktop

StarDesktop object

The StarDesktop object represents %PRODUCTNAME application. Some routines or user interface objects such as current window can be used via StarDesktop.

Example:

Dim docURL As String Dim doc As Object, docProperties() docURL = ConvertToURL("C:\My Documents\example.odt") Rem com.sun.star.frame.Desktop doc = StarDesktop.LoadComponentFromURL(docURL, "_blank", 0, docProperties)