I have a writer document with an image control on it and I want to use a macro to load an image into it.
Using the MRI tool add-on and inspecting the image control, I see a property called imageURL. I set this to a path to an image, but the image did not display.
I also see a property called Graphic, which almost corresponds to the property you can access from the user interface’s ‘Control Properties’ called ‘Graphics’…note that it is plural there. This is of a type XGraphic, however, and I’m not sure how to create an instance of this and associate it with the control.
So, in summary, given a path such as, C:\images\myImage.jpg , how do I load the image data from that file into an Image Control on a writer document using LO Basic?