31 messages in org.openoffice.fr.progRe: [prog] Probleme concernant le dat...
FromSent OnAttachments
thom...@free.frApr 15, 2005 5:51 am 
Laurent GodardApr 15, 2005 6:04 am 
thom...@free.frApr 15, 2005 6:22 am 
thom...@free.frApr 15, 2005 7:23 am 
Bernard MarcellyApr 15, 2005 7:43 am 
thom...@free.frApr 15, 2005 7:59 am 
thom...@free.frApr 18, 2005 12:05 am 
Bernard MarcellyApr 18, 2005 1:53 am 
thom...@free.frApr 18, 2005 3:03 am 
thom...@free.frApr 18, 2005 5:50 am 
thom...@free.frApr 18, 2005 7:35 am 
Bernard MarcellyApr 18, 2005 9:40 am 
Thomas CoqueryApr 20, 2005 5:48 am 
Thomas CoqueryApr 20, 2005 6:35 am 
Thomas CoqueryApr 20, 2005 7:55 am 
Laurent GodardApr 20, 2005 8:10 am 
Thomas CoqueryApr 20, 2005 11:11 pm 
Josianne SAUVAGEApr 21, 2005 1:51 am 
will...@free.frApr 21, 2005 2:07 am 
Thomas CoqueryApr 21, 2005 2:08 am 
will...@free.frApr 21, 2005 2:22 am 
Alain NowakApr 21, 2005 7:30 am 
Josianne SAUVAGEApr 21, 2005 9:01 am 
Jean-MichelApr 21, 2005 9:06 am 
GVApr 21, 2005 10:20 am 
Josianne SAUVAGEApr 22, 2005 2:15 am 
Thomas CoqueryApr 22, 2005 2:27 am 
Thomas CoqueryApr 27, 2005 6:50 am 
Thomas CoqueryApr 29, 2005 2:47 am 
Laurent GodardApr 29, 2005 3:06 am 
Thomas CoqueryApr 29, 2005 6:15 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] Probleme concernant le datasource dans un publipostage (ma table n'existe pas)Actions...
From:thom...@free.fr (thom@free.fr)
Date:Apr 15, 2005 7:23:48 am
List:org.openoffice.fr.prog

Je vais donner quelques précisions en même temps que mon code pour le publipostage à partir d'un fichier .txt

procedure TTest.But_LienClick(Sender: TObject); var publipostage:variant;

begin publipostage:=OpenOffice.createInstance('com.sun.star.text.MailMerge'); publipostage.DataSourceName:= 'src1' ; publipostage.DocumentURL:= document.getUrl; publipostage.OutputType:=1; publipostage.Command:= 'essai'; publipostage.CommandType:=0; publipostage.ActiveConnection:=connection; publipostage.execute(VarArrayCreate([0, -1],varVariant)); end;

le "plantage" se produit à la derniére ligne le .execute... (rem le VarArrayCreate([0, -1],varVariant) indique que je ne passe aucun parametre à execute... il me dit: provoqué une classe d'exception EOLE Exception 'com.sun.star.sdb.SQLException' ,il n'existe aucune table nommée essai... (malgré la présence d'un fichier essai.txt dans le dossier correspondant à l'URL de la source de donnée...

je penche toujours pour l'explication du tablefilter (dans la definition duquel on me dit que si la valeur est vide, on ne peut voir aucune table)... mais je ne sais pas ce que je dois assigner à TableFilter: une chaine ne passe pas, un tableau non plus, je n'ai pas de méthode pour y rajouter quoi que ce soit...

La galère... Même dans les forums en anglais personne ne semble avoir rencontré ce problème (ou si plutôt un mais il n'a pas indiqué la solution... (un certain jbotte)