1 message in org.openoffice.fr.prog[prog] PB Apercu avant impression
FromSent OnAttachments
THEVENOUX Jean-PhilippeJun 24, 2005 12:50 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:[prog] PB Apercu avant impressionActions...
From:THEVENOUX Jean-Philippe (jp.t@atolcd.com)
Date:Jun 24, 2005 12:50:08 am
List:org.openoffice.fr.prog

Une nouvelle journée et une nouvelle question

Dans ma migration de macro Excel vers Calc, j'ai un petit soucis,

sous excel j'ai : ... Sheets("Graphiques").Select ActiveSheet.PrintPreview reponse = MsgBox("Une question ?", vbYesNo) ...

que je traduit en Macro OOo par :

... oRange = ThisComponent.Sheets("Graphiques").getCellRangeByName("A1") Thiscomponent.CurrentController.Select(oRange) dispatcher.executeDispatch(ThisComponent.CurrentController.Frame, ".uno:PrintPreview", "", 0, Array()) reponse = MsgBox("Une Question ?", 32 + 4) ' 32 = "?" 4 = "oui / non" ...

Mon problème vient que sous Excel, l'apercu bloque l'éxécution de la macro, donc la question est posé après que l'on est fermé l'apercu, alors que sous Calc, l'apercu n'est pas bloquant, et dans mon cas, la question est posé directement, et dès fois, l'apercu ne se fait pas !!!

Existe t-il une autre méthode pour faire lancer un apercu qui serait bloquant ? existe-t-il un moyen d'attendre que l'apercu se faire ?

Merci d'avance Jean-Philippe