Re: Inserting Graphics in a Writer document

2015-04-15 Thread Piet van Oostrum
Niklas Johansson wrote: > If I were you I would set the Anchor before I insert the image into the > document. So change the order of these lines: > > xText.insertTextContent(cursor, oGraphic, False) > # Setting the anchor type - must be done first, otherwise the graphic > will b

Re: Inserting Graphics in a Writer document

2015-04-15 Thread Niklas Johansson
If I were you I would set the Anchor before I insert the image into the document. So change the order of these lines: xText.insertTextContent(cursor, oGraphic, False) # Setting the anchor type - must be done first, otherwise the graphic will be put after the // oGraphic.AnchorType =

Re: Inserting Graphics in a Writer document

2015-04-15 Thread SOS
On 15/04/2015 16:00, Piet van Oostrum wrote: Hello, I am in the process of converting several Java LO programming examples to Python. My plan is to do all (or most) of them. Also I try to extend them. However I encountered some surprises. I converted LibreOffice4.4_SDK/examples/java/Text/Gra

Inserting Graphics in a Writer document

2015-04-15 Thread Piet van Oostrum
Hello, I am in the process of converting several Java LO programming examples to Python. My plan is to do all (or most) of them. Also I try to extend them. However I encountered some surprises. I converted LibreOffice4.4_SDK/examples/java/Text/GraphicsInserter.java which inserts a graphic imag