Peter,

Sorry, i am a bit of a writer gui :-)

but as the other respons sugest the same technic can been used for "shapes.graphic"

Fernand
Hi,



Am 08.02.2011 11:21, schrieb Fernand Vanrie:
Peter ,

You can use the graphicProvider like:

oOriginalGraph = getGraphFromUrl(sURL)

oGraphic.Graphic = oOriginalGraph

oText.insertTextContent(oDocument.getCurrentController().getViewCursor(), oGraphic,
false)

function getGraphFromUrl(sFileURL as String) as Object
oProvider = createUnoService("com.sun.star.graphic.GraphicProvider")
Dim oPropsIN(0)as new com.sun.star.beans.PropertyValue
oPropsIN(0).Name = "URL"
oPropsIN(0).Value = sFileURL
getGraphFromUrl = oProvider.queryGraphic(oPropsIN())
end function


sorry that I was not precise enough.

My question is about Drawing resp. Presentation documents,

Peter

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to