Hallo Charlie Young, hallo FJCC,
thank you for your answers. I tried to insert a grafic without seting the size.
It works!- Code: Select all Expand viewCollapse view
procedure OOInsertPic( OO: T_OO; Fil: String; Err: T_Error );
var
Path: String;
begin
OO.Graphic := OO.Fil.createInstance('com.sun.star.text.TextGraphicObject');
Path := OO.FCP.getFileURLFromSystemPath('', Fil);
OO.Graphic.GraphicURL := Path;
OO.Txt.insertTextContent( OO.Cur, OO.Graphic, False );
end;
But now ther is a new problem. The grafic is centered and the text flow is above and below.
To be compatible with MS-Word (I know it is poisen) I would like to get it left and test flow around.
It should be easy to find out how to do this, but all tools I tried do not work. "Xray" has a runtime error (Parameter), "MRI" starts, but I can not find infos for this problem and the "Object Inspector" is in the frame, but does not start.

If I could see the tree of methodes and propertys it would propably easy to find the solution. I think I have to start a thred about this, but later.
So I hope you will help me.
Greetings
Peter