2 messages in org.openoffice.fr.progRe: [prog] lire un fichier calc sans ...
FromSent OnAttachments
Christian LejeuneOct 25, 2008 12:42 pm 
Francois GattoOct 25, 2008 11:23 pm 
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] lire un fichier calc sans l'ouvrirActions...
From:Francois Gatto (oo@volcar.org)
Date:Oct 25, 2008 11:23:13 pm
List:org.openoffice.fr.prog

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

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())