6 messages in org.openoffice.fr.progRe: [prog] Dailog Enregistrer sous
FromSent OnAttachments
JovialSep 30, 2004 1:19 am 
BobSep 30, 2004 4:40 am 
JovialSep 30, 2004 2:02 pm 
Alain NowakOct 1, 2004 5:14 am 
Marie jo KOPP CASTINELOct 1, 2004 9:19 pm 
JovialOct 4, 2004 2:42 pm 
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] Dailog Enregistrer sousActions...
From:Alain Nowak (ano@starxpert.fr)
Date:Oct 1, 2004 5:14:20 am
List:org.openoffice.fr.prog

Bonjour,

Une autre méthode est d'utiliser le service FilePicker, à instancier par : createUnoService("com.sun.star.ui.dialogs.FolderPicker"). Pour plus d'infos, voir dans le guide de référence sur http://api.openoffice.org/docs/common/ref/com/sun/star/ui/dialogs/FilePicker.html

Jovial a écrit :

Bonjour

J'ouvre la boite dialogue "Enregistrer sous" avec la macro ci-dessous Je voudrai pouvoir spécifier un nom de fichier qui s'incrira par défaut Comment faire ? merci d'avance Jluc :-)

Sub LoadDialogSaveAs

oDoc = ThisComponent

' Get the document's controller. oDocCtrl = oDoc.getCurrentController() ' Get the frame from the controller. oDocFrame = oDocCtrl.getFrame()

oDispatchHelper = createUnoService( "com.sun.star.frame.DispatchHelper" ) oDispatchHelper.executeDispatch( oDocFrame, ".uno:SaveAs", "", 0, Array() ) End Sub