2 messages in org.openoffice.fr.progRe: [prog] Diagramme automatisé sous ...
FromSent OnAttachments
Alpha BetaJul 4, 2005 8:09 am 
Bernard MarcellyJul 4, 2005 9: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:Re: [prog] Diagramme automatisé sous CalcActions...
From:Bernard Marcelly (marc@club-internet.fr)
Date:Jul 4, 2005 9:50:21 am
List:org.openoffice.fr.prog

Le 2005-07-04 17:10, Alpha Beta a écrit :

Zone=Feuil.GetCellRangeByName(Plage)

RectDiag.X=CellOrig.Position.X RectDiag.Y=CellOrig.Position.Y RectDiag.Width=CellFin1.Position.X-CellOrig.Position.X RectDiag.Height=CellFin.Position.Y

Dim XX As String XX="zozo" & time

Feuil.Charts.AddNewByName(XX,RectDiag,Zone, True, True ) ' pourquoi la plage
Zone n'est pas bonne ?

Relire la définition : addNewByName( [in] string aName, [in] ::com::sun::star::awt::Rectangle aRect, [in] sequence< CellRangeAddress > aRanges, [in] boolean bColumnHeaders, [in] boolean bRowHeaders );

En clair, le 3è argument est un tableau de zones, pas une zone. Faire un tableau à 1 élément.

Bernard