Fai la tua domanda

fodorbalint's profile - attività

2020-09-05 21:44:01 +0200 received badge  Domande famose (source)
2020-09-05 21:44:01 +0200 received badge  Domanda notevole (source)
2020-07-28 15:03:00 +0200 received badge  Domanda notevole (source)
2020-07-20 19:36:55 +0200 received badge  Domande famose (source)
2020-02-02 23:16:21 +0200 received badge  Domande famose (source)
2019-08-30 23:19:44 +0200 received badge  Domanda gettonata (source)
2019-08-30 22:14:27 +0200 ha modificato una domanda Base: How can I display an image in a RectangleShape object?

Base: How can I display an image in a RectangleShape object You can add a picture to a form using com.sun.star.drawing.G

2019-08-30 13:42:00 +0200 ha modificato una domanda Base: How can I display an image in a RectangleShape object?

Base: How can I display an image in a RectangleShape object You can add a picture to a form using com.sun.star.drawing.G

2019-08-30 13:41:31 +0200 ha posto una domanda Base: How can I display an image in a RectangleShape object?

Base: How can I display an image in a RectangleShape object You can add a picture to a form using com.sun.star.drawing.G

2019-08-17 18:15:59 +0200 received badge  Domanda notevole (source)
2019-08-17 18:01:36 +0200 ha accettato una risposta Setting background image in Base form

It used to be so easy by using this line:

oPageStyle.BackGraphicURL=imgurl

but it became deprecated with LibreOffice 6.1.

Now I am trying this code, and it runs without error but does not set the background image:

imgurl="file:///C:/Users/fodor/OneDrive/Documents/Recipe%20organizer/Developing-own/Big%20Images/20180319_114502.jpg"

oPageStyle = ThisComponent.getStyleFamilies().getByName("PageStyles").getByName("Default Style")
oPageStyle.FillColor = RGB(255,255,255)
oPageStyle.BackGraphicLocation = com.sun.star.style.GraphicLocation.LEFT_TOP

oProvider = createUnoService("com.sun.star.graphic.GraphicProvider")

Dim args(0) as new com.sun.star.beans.PropertyValue
args(0).Name = "URL"
args(0).Value = imgurl

oPageStyle.BackGraphic = oProvider.queryGraphic(args())

Testing in the end:

MsgBox isNull(oProvider.queryGraphic(args())) 'False
MsgBox isNull(oPageStyle.BackGraphic) 'True
2019-08-17 18:01:36 +0200 received badge  Studioso (source)
2019-08-17 18:01:33 +0200 ha commentato una risposta Setting background image in Base form

Thanks, this works now! Will report it.

2019-08-17 11:24:40 +0200 received badge  Domanda gettonata (source)
2019-08-17 11:09:09 +0200 ha modificato una domanda Setting background image in Base form

Setting background image in Base form It used to be so easy by using this line: oPageStyle.BackGraphicURL=imgurl but

2019-08-17 11:08:08 +0200 ha modificato una domanda Setting background image in Base form

Setting background image in Base form It used to be so easy by using this line: oPageStyle.BackGraphicURL=imgurl but

2019-08-17 11:07:59 +0200 ha modificato una domanda Setting background image in Base form

Setting background image in Base form It used to be so easy by using this line: oPageStyle.BackGraphicURL=imgurl but

2019-08-17 11:07:10 +0200 ha modificato una domanda Setting background image in Base form

Setting background image in Base form It used to be so easy by using this line: oPageStyle.BackGraphicURL=imgurl but

2019-08-17 11:06:16 +0200 ha modificato una domanda Setting background image in Base form

Setting background image in Base form It used to be so easy by using this line: oPageStyle.BackGraphicURL=imgurl but

2019-08-17 10:45:51 +0200 ha modificato una domanda Setting background image in Base form

Setting background image in Base form It used to be so easy by using this line: oPageStyle.BackGraphicURL=imgurl but

2019-08-17 10:08:08 +0200 ha modificato una domanda Setting background image in Base form

Setting background image in Base form It used to be so easy by using this line: oPageStyle.BackGraphicURL=imgurl but

2019-08-16 14:04:33 +0200 received badge  Domande famose (source)
2019-08-16 14:04:23 +0200 received badge  Domanda notevole (source)
2019-08-16 14:04:23 +0200 received badge  Domanda gettonata (source)
2019-08-16 14:03:59 +0200 received badge  Organizzatore (source)
2019-08-16 14:01:33 +0200 ha modificato una domanda Setting background image in Base form

Setting background image in Base form It used to be so easy by using this line: oPageStyle.BackGraphicURL=imgurl but i

2019-08-16 14:01:15 +0200 ha modificato una domanda Setting background image in Base form

Setting background image in Base form It used to be so easy by using this line: oPageStyle.BackGraphicURL=imgurl but i

2019-08-16 14:00:06 +0200 received badge  Revisore (source)
2019-08-16 14:00:06 +0200 ha modificato una domanda Setting background image in Base form

Setting background image in Base form It used to be so easy by using this line: oPageStyle.BackGraphicURL=imgurl but i

2019-08-16 13:59:20 +0200 ha posto una domanda Setting background image in Base form

Setting background image in Base form It used to be so easy by using this line: oPageStyle.BackGraphicURL=imgurl but i

2018-10-20 18:24:38 +0200 received badge  Domanda notevole (source)
2018-08-09 23:57:51 +0200 received badge  Domanda gettonata (source)
2018-06-06 11:17:45 +0200 received badge  Entusiasta
2018-05-27 17:12:56 +0200 received badge  Domanda gettonata (source)
2018-05-26 19:45:19 +0200 ha risposto a una domanda Setting base form window position: Min 7 px space on the left

It might be a Windows 10-specific issue then. I use the same LO version, 6.0.4.2. I am setting the position in the form

2018-05-26 14:19:41 +0200 ha modificato una domanda How to upload zipped projects to templates.libreoffice.org?

How to upload zipped projects to templates.libreoffice.org? I have a base application I would like to share, but templat

2018-05-26 14:19:15 +0200 ha posto una domanda How to upload zipped projects to templates.libreoffice.org?

How to upload zipped projects to templates.libreoffice.org? I have a base application I would like to share, but templat

2018-05-26 13:46:06 +0200 ha posto una domanda Setting base form window position: Min 7 px space on the left

Setting base form window position: Min 7 px space on the left My base form is using ThisComponent.CurrentController.Fram

2018-05-26 13:33:38 +0200 ha posto una domanda Hide scrollbar on base form

Hide scrollbar on base form I am having a slideshow in my base application, the program enters full screen mode to show