10 messages in org.openoffice.fr.progRe: [prog] FileSelection repertoire e...
FromSent OnAttachments
Laurent GodardMar 12, 2004 12:24 am 
seba...@free.frMar 12, 2004 12:28 am 
jovialMar 12, 2004 12:32 am 
jovialMar 12, 2004 1:55 am 
jovialMar 12, 2004 2:13 am 
BobMar 12, 2004 6:01 am 
BobMar 12, 2004 8:27 am 
Alain NowakMar 12, 2004 8:57 am 
Bernard MarcellyMar 12, 2004 9:25 am 
BobMar 13, 2004 12:36 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [prog] FileSelection repertoire et extension par défautActions...
From:Bernard Marcelly (marc@club-internet.fr)
Date:Mar 12, 2004 9:25:44 am
List:org.openoffice.fr.prog

At 17:28 2004-03-12, Bob wrote:

Bonjour,

Qq'un a-t-il trouvé une solution pour fixer le répertoire par défaut et l'extension (par ex *.txt) des fichiers dans le paramètrage du contrôle FileSelection ?

Bonjour, Remplir la propriété Text du contrôle avec le chemin du répertoire par défaut. Par contre, la fonctionnalité de filtrage (*.txt) n'existe pas.

champFich = Dlg.getControl("FileControl1") ' répertoire initial (le chemin suit la syntaxe du système) champFich.Text = "C:\Photos\" if Dlg.Execute = 1 then cheminFich = champFich.Text MsgBox cheminFich end if

Le FilePicker offre plus de possibilités mais est bien plus compliqué (je ne l'ai pas pratiqué). Voir dans soffice la bibliothèque Tools, module ModuleControls, macro getFileName.

Bernard