Translations:Macros/Basic/Documents/38/en

    From The Document Foundation Wiki

    If dlg_select_file.Execute() Then

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

    Save document