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
hope it helps
Fernand
Hi,
I want to insert a (non-linked) graphic into a drawpage via API.
This can be done by creating a shape and setting the property
FillBitmapURL to an internal URL.
This internal URL is stored in a BitmapTable, if it was inserted by
name before.
Now I saw, that this BitmapTable is empty, if a graphic is inserted by
GUI.
So is there another way to insert pictures by API beside the
BitmapTable service?
Regards
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]