5 messages in org.openoffice.fr.progRe: [prog] Macro - Erreur 91
FromSent OnAttachments
fabien macipFeb 26, 2004 1:31 am 
Laurent GodardFeb 26, 2004 1:43 am 
fabien macipFeb 26, 2004 2:02 am 
Bernard MarcellyFeb 26, 2004 5:09 am 
fabien macipFeb 26, 2004 5:54 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] Macro - Erreur 91Actions...
From:Bernard Marcelly (marc@club-internet.fr)
Date:Feb 26, 2004 5:09:10 am
List:org.openoffice.fr.prog

At 11:03 2004-02-26 +0100, fabien macip wrote:

L'EDI ne pointe pas, mais j'ai utilisé les points d'arrêts, et l'erreur survient à l'exécution de cette ligne : "oChamps = oDocument.getTextFields"

La variable tUrl contient un nom de fichier Writer. Alors que le commentaire indique qu'on cherche à ouvrir un modèle (.stw) ou à ouvrir un nouveau document basé sur un modèle. Si le document n'existe pas, oDocument est Null, donc erreur à l'instruction suivante.

Pour les différentes manières de charger un document voir L’API OpenOffice.org (presque) sans peine.

Bernard