https://issues.apache.org/ooo/show_bug.cgi?id=123544

--- Comment #18 from brinzing <oliver.brinz...@gmx.de> ---
it seems setting the directory works, if the filpicker is initialized:

REM  *****  BASIC  *****
OPTION EXPLICIT

Sub Main
    Dim dlg as Object

    dlg = CreateUnoService( "com.sun.star.ui.dialogs.FilePicker" )

    Dim Dialogtyp(0)
    DialogTyp(0) =
com.sun.star.ui.dialogs.TemplateDescription.FILESAVE_AUTOEXTENSION

    dlg.initialize(DialogTyp())
    dlg.Title = "Test"
'    dlg.DisplayDirectory = "file:///c:/users"
    dlg.DisplayDirectory = "file:///c:/"

' this will crash aoo401:
' dlg.DefaultName = "xxx"

    If dlg.Execute = 1 Then MsgBox dlg.SelectedFiles(0)
End Sub

could someone please confirm?


btw: issue "Issue 110141 - FilePicker Dialog "setDisplayDirectory" ignored" 
       seems a dupe of this issue

-- 
You are receiving this mail because:
You are on the CC list for the issue.
You are the assignee for the issue.
You are watching all issue changes.

Reply via email to