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