Ask Your Question
0

.GraphicURL no longer works in 6.1.0.3

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

BillC gravatar image

traffic_light.ods

Attached is an example I found somewhere that changes the image when you select a color from a list. It worked before with 6.0.5.2, but fails with error in 6.1.0.3. 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?

edit retag flag offensive close merge delete

Comments

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 +0100 )edit

2 Answers

Sort by » oldest newest most voted
1

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

Replace line 31

ResultPicture.GraphicURL = srcImage.GraphicURL

with

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

Comments

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

BillC gravatar imageBillC ( 2018-09-08 14:28:58 +0100 )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 +0100 )edit

Thanks for the info!

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

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

kompilainenn gravatar image

.GraphicURL was removed in 6.1

https://tomazvajngerl.blogspot.com/20...

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

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

Seen: 95 times

Last updated: Sep 08 '18