.GraphicURL no longer works in


Attached is an example I found somewhere that changes the image when you select a color from a list. It worked before with, but fails with error in I found some info saying that there has been a change but they all show examples using an image from file and I can’t get it to work with images from another sheet.

The error at line 31 “ResultPicture.GraphicURL = srcImage.GraphicURL”:
BASIC runtime error.
An exception occurred
Type: com.sun.star.lang.IllegalArgumentException
Message: .

What changes do I need to make this work again?

I would link to source of example if I knew where I got it, google wasn’t much help.

.GraphicURL was removed in 6.1

Replace line 31

ResultPicture.GraphicURL = srcImage.GraphicURL


ResultPicture.Graphic = srcImage.Graphic

This works! Thanks.
Any idea how far back this works?

This works all way back to OOo 3.3.0 (inclusive), but not with OOo 3.2.0 (where original doesn’t work either).

Thanks for the info!

Why there is still GraphicURL in the source?