If dlg_select_file.Execute() Then
path = dlg_select_file.getFiles()(0) doc = StarDesktop.loadComponentFromURL(path, "_default", 0, args()) End If</source>