2 messages in org.openoffice.fr.progRe: [prog] pb vbscript: openoffice: t...
FromSent OnAttachments
yannick privateApr 15, 2004 12:47 am 
Laurent GodardApr 15, 2004 2:46 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] pb vbscript: openoffice: transformer string en URL?Actions...
From:Laurent Godard (list@wanadoo.fr)
Date:Apr 15, 2004 2:46:00 am
List:org.openoffice.fr.prog

Bonjour Yannick

MyMerge.DocumentURL=?????("C:\Test\monfichier.sxw")

en utilisant l'API de OOo, tu peux obtenir l'equivalent à convertToURL des macros OOo

monURL=createUnoservice("com.sun.star.util.URLTransformer") dim uneURL as new com.sun.star.util.URL uneURL.complete="c:\toto\titi.sxw"

retour= monURL.parseSmart(uneURL,"")

print uneURL.complete

.complete contient alors le nom du fichier en notation URL

Bon courage

Laurent