« Return to Thread: Embedded Image

Embedded Image

by Emilio Cano - Tecnotur 3000 :: Rate this Message:

Reply to Author | View in Thread

Hello!
I am a spanish programmer and I have a problem.
I am doing an export to openoffice and try to insert a picture just makes me
so linked, and need to be embedded, how can I do that?
Using Delphi 7.0

The code I use for this is:

 

  Imagen := Document.createInstance('com.sun.star.text.GraphicObject');

 

  Imagen.GraphicURL := ConvertirAURL(archivo);

  Imagen.Width := 3000;

  Imagen.Height := 3000;

 

  Imagen.setPropertyValue('GraphicURL',ConvertirAURL(archivo));

 

  oText.InsertTextContent( oCursor, Imagen, false);

 

Thanks and best regards!

 « Return to Thread: Embedded Image