4 messages in org.openoffice.fr.prog[prog] Essai d'ouverture fichier text...
FromSent OnAttachments
Philippe BoltonOct 3, 2005 7:41 am 
Laurent GodardOct 3, 2005 8:33 am 
Francois GattoOct 3, 2005 9:33 am 
Philippe BoltonOct 4, 2005 8:55 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:[prog] Essai d'ouverture fichier texte dans calc avec OOoBasicActions...
From:Philippe Bolton (phil@compuserve.com)
Date:Oct 3, 2005 7:41:56 am
List:org.openoffice.fr.prog

Bonjour, Je voudrais ouvrir un fichier texte en tant que classeur Calc avec une macro. Voici le code utilisé :

Dim monDocument as Object Dim adresseDoc as String Dim propFich(1) As New com.sun.star.beans.PropertyValue PropFich(0).Name = "FilterName" PropFich(0).Value = "Text - txt - csv (StarCalc)" PropFich(1).Name = "FilterOptions" PropFich(1).Value = sFilter adresseDoc=convertToURL("C:\Compta2\BaremeOO\Change.txt")

monDocument=Stardesktop.LoadComponentFromURL(adresseDoc, "_blank", 0, propFich())

L'opération ne réussit pas.

Où est l'erreur dans le code ?

Merci d'avance