[Libreoffice-bugs] [Bug 127025] New: Background image of Base form cannot be set using the BackGraphic property

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Aug 19 12:02:14 UTC 2019


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 at lists.freedesktop.org
          Reporter: fodorbalint at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190819/03ab7cbb/attachment.html>


More information about the Libreoffice-bugs mailing list