Ask Your Question

.GraphicURL no longer works in

asked 2018-09-08 01:30:16 +0200

BillC gravatar image


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: Message: .

What changes do I need to make this work again?

edit retag flag offensive close merge delete


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

BillC gravatar imageBillC ( 2018-09-08 01:32:43 +0200 )edit

2 Answers

Sort by » oldest newest most voted

answered 2018-09-08 07:57:16 +0200

Replace line 31

ResultPicture.GraphicURL = srcImage.GraphicURL


ResultPicture.Graphic = srcImage.Graphic
edit flag offensive delete link more


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

BillC gravatar imageBillC ( 2018-09-08 14:28:58 +0200 )edit

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

Mike Kaganski gravatar imageMike Kaganski ( 2018-09-08 15:14:07 +0200 )edit

Thanks for the info!

BillC gravatar imageBillC ( 2018-09-14 00:12:07 +0200 )edit
pablo gravatar imagepablo ( 2018-09-14 02:28:14 +0200 )edit

answered 2018-09-08 07:31:34 +0200

kompilainenn gravatar image

.GraphicURL was removed in 6.1

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2018-09-08 01:30:16 +0200

Seen: 137 times

Last updated: Sep 08 '18