8 messages in org.openoffice.fr.progRe: [prog] erreur au lancement d'un d...
FromSent OnAttachments
Agnès SimonetJan 5, 2009 10:50 am 
yves dutrieuxJan 5, 2009 11:13 am 
Bernard MarcellyJan 5, 2009 11:25 am 
Didier Dorange-PattoretJan 5, 2009 11:28 am 
Agnès SimonetJan 5, 2009 12:13 pm 
Agnès SimonetJan 5, 2009 12:13 pm 
Agnès SimonetJan 5, 2009 12:37 pm 
Bernard MarcellyJan 6, 2009 2:02 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] erreur au lancement d'un dialogue - OOo 3.0Actions...
From:Agnès Simonet (agne@laposte.net)
Date:Jan 5, 2009 12:37:21 pm
List:org.openoffice.fr.prog

yves dutrieux a écrit :

Bonsoir,

Le 5 janvier 2009 19:50, Agnès Simonet <agne@laposte.net> a écrit :

Bonjour,

Décidemment le passage à OOO v3.0 me crée des problèmes.

J'ai une macro qui utilise une boite de dialogue contenue dans le même module et qui commence banalement par : Dim bibli As Object Dim monDialogue As Object

bibli = DialogLibraries.GetByName("Standard") monDialogue = bibli.GetByName("Dialog1") Dlg = CreateUnoDialog(monDialogue)

Pas de problème avec OOo v1 ou v2. Avec OOo v3, au premier lancement une fenêtre d'erreur s'ouvre : "Une exception s'est produite. Type com.sun.star.lang.WrappedTargetException Message: TargetException : com.sun.star.script.LibraryNotLoadedException" et la ligne monDialogue = bibli.GetByName("Dialog1") est surlignée.

Je dis zut et relance la macro. Plus de problème. Kesako ?

Je m'y connais pas trop en programmation OOo, mais d'après le message d'erreur, j'aurais dit qu'il manque la librairie dans laquelle se trouve ton 'dialog1', il se trouve peut-être pas dans la librairie 'Standard' mais ailleurs ?

Et pourtant : http://agnooo.free.fr/OOo/Pb_OOo/pb_dialog.jpg

Mais j'ai la solution c'est l'essentiel. Merci

Agnès S.