Hi Kami


Function OOoLangue() as string
....

 Dim OOLangue as string
 OOLangue= oSet.getbyname("ooLocale")    'en-US
End Function


the problem is
OOoLangue= oSet.getbyname("ooLocale")


REM Location of Help Document
s = "file:///C|/Program Files/OpenOffice.org%202.0/share/samples/" & OOoLangue( ) & "/Documentations/ooo2agy.odt"
REM PROBLEM!!!
 Print s
REM  c:\Program Files\OpenOffice.org 2.0\share\samples\hu\Documentations\


you may consider using the helpers
convertToURL and convertFromURL

please check the string value REMMARKED with PROBLEM. I couln't get the language of running OpenOffice.org...

the finction is not returned correctly

Why? What did I wrong? Also, how
can I get the folder of OpenOffice.org (C:/Program Files/OpenOffice.org 2.0, /opet/OpenOffice.org 2.0/) ? I need these variables to locates samples folder...


try this

ServiceSubst = CreateUnoService("com.sun.star.util.PathSubstitution") cheminOOO=ConvertFromURL(leServiceSubst.substituteVariables("$(insturl)", true))

look at this
http://api.openoffice.org/docs/common/ref/com/sun/star/util/PathSubstitution.html

HTH

Laurent


--
Laurent Godard <[EMAIL PROTECTED]> - Ingénierie OpenOffice.org
Indesko >> http://www.indesko.com
Nuxeo CPS >> http://www.nuxeo.com - http://www.cps-project.org
Livre "Programmation OpenOffice.org", Eyrolles 2004

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to