Bonjour,

Christian Lejeune a écrit :
Bonjour.
J'utilise la commande stardesktop.loadcomponent pour lire un fichier calc mais cette commande ouvre le fichier.
est-il possible de lire un fichier calc sans l'ouvrir?
D'avance merci

Christian Lejeune

Il suffit d'ouvrir le fichier en mode caché (hidden), comme ceci :

 dim oProp(0) as New com.sun.star.beans.PropertyValue
 oProp(0).Name = "Hidden"
 oProp(0).Value = True

 oDoc = starDeskTop.loadComponentFromURL(sURL,"_blank",0,oProp())

Francois Gatto


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

Répondre à