2 messages in org.openoffice.fr.progRe: [prog] gettmpdiectory ??
FromSent OnAttachments
StéphaneMay 20, 2005 9:21 am 
Laurent GodardMay 20, 2005 9:27 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] gettmpdiectory ??Actions...
From:Laurent Godard (lgod@indesko.com)
Date:May 20, 2005 9:27:41 am
List:org.openoffice.fr.prog

Bonjour stephane

Existe-t-il une méthode en oobasic qui permette de récupérer l'adresse du répertoire temporaire de l'utilisateur ? (comme la méthode gettmpdirectory() en java par exemple )

oui, en utilisant l'Api de OOo

essaye ceci (inspiré du livre cp19 page 588)

sub TrouveTemp() monService = createUnoService("com.sun.star.util.PathSubstitution") monRepTemp = monService.substituteVariables("$(temp)", false) print convertFromURL(monRepTemp) end sub

Merci d'avance :)

de rien

Laurent