The setDefaultName method of filepicker object dont work if filepicker object is initialize with filesave_simple template Dim oDialog As Object Dim i As Integer oDialog = CreateUnoService("com.sun.star.ui.dialogs.FilePicker") i = com.sun.star.ui.dialogs.TemplateDescription.FILESAVE_SIMPLE oDialog.initialize(Array(i)) oDialog.setDefaultName(ConvertFromUrl(sFileName))
Hi Julien, Thanks for filing. I cannot confirm the problem, sorry. Works fine on Ubuntu 32 bits. In any case, If I give sFileName a value ;) But maybe Windows only, as bug 43021 ? NB here are all filepicker issues https://bugs.documentfoundation.org/buglist.cgi?component=BASIC&list_id=570695&product=LibreOffice&query_format=advanced&resolution=---&short_desc=picker&short_desc_type=allwordssubstr Cheers - Cor
See bug 70843 too.
Closing as RESOLVED DUPLICATED *** This bug has been marked as a duplicate of bug 70843 ***
*** This bug has been marked as a duplicate of bug 43021 ***