HI MuiFull,
Do you or others have any idea what else I can do?
I couldn't find any UNO-Interfaces that help to insert unlinked
grpahics, but the dispatch-API seems to do the job, so something like
document = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")
dim args1(1) as new com.sun.star.beans.PropertyValue
args1(0).Name = "FileName"
args1(0).Value = "file:///<YOURPATH>/<YOURFILE>"
args1(1).Name = "AsLink"
args1(1).Value = false
dispatcher.executeDispatch(document, ".uno:InsertGraphic", "", 0, args1())
should insert a graphic that is embedded and not linked.
Hope that helps
Regards
Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]