4 messages in org.openoffice.fr.progRe: [prog] Les HORRIBLES constantes !
FromSent OnAttachments
Martin BlaizotFeb 18, 2005 10:03 am 
Bernard MarcellyFeb 20, 2005 12:52 am 
Martin BlaizotFeb 20, 2005 9:20 am 
Martin BlaizotFeb 20, 2005 9:26 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] Les HORRIBLES constantes !Actions...
From:Martin Blaizot (mart@wanadoo.fr)
Date:Feb 20, 2005 9:20:53 am
List:org.openoffice.fr.prog

Bonjour Bernard, et merci de te pencher une fois de plus sur mes petits problèmes

J'ai effectivement consulté cet HowTo ( ainsi que la troisième partie d'un très bon bouquin (-: ). Malheureusement, je n'arrivais pas à placer mon image tout en haut de ma feuille; elle restait toujours sous la marge supérieure. D'ailleurs je ne comprend toujours pas pourquoi mon code ne donnait pas le même résultat :

com.sun.star.text.TextContentAnchorType.AT_PAGE MonImage.VertOrient = com.sun.star.text.VertOrientation.TOP MonImage.VertOrientRelation = com.sun.star.text.RelOrientation.PAGE_FRAME MonImage.HoriOrient = com.sun.star.text.HoriOrientation.LEFT MonImage.HoriOrientRelation = com.sun.star.text.RelOrientation.PAGE_LEFT

Alors que ça, effectivement , ça fonctionne très bien :

With MonImage .AnchorType = com.sun.star.text.TextContentAnchorType.AT_PAGE .VertOrient = com.sun.star.text.VertOrientation.TOP .VertOrientRelation = com.sun.star.text.RelOrientation.PAGE_FRAME .HoriOrient = com.sun.star.text.HoriOrientation.LEFT .HoriOrientRelation = com.sun.star.text.RelOrientation.PAGE_LEFT End With

J'avoue que j'aimerais bien comprendre où était mon erreur.

Merci,

Martin