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

--- Comment #14 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

see issue 
"Issue 123544 - XFilePicker's setDisplayDirectory and setDefaultName do not
work in Windows"
for details

-- 
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