https://bugs.documentfoundation.org/show_bug.cgi?id=127025

            Bug ID: 127025
           Summary: Background image of Base form cannot be set using the
                    BackGraphic property
           Product: LibreOffice
           Version: 6.2.5.2 release
          Hardware: All
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: fodorbal...@gmail.com

Description:
Before LibreOffice 6.1 one could use BackGraphicURL to set the background
image.
Now BackGraphic should be used, but it doesn't work.
FillBitmap works instead.

Full code:

   
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

Actual Results:
No image displayed

Expected Results:
Image should be displayed.


Reproducible: Always


User Profile Reset: No



Additional Info:

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to