<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - Background image of Base form cannot be set using the BackGraphic property"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=127025">127025</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Background image of Base form cannot be set using the BackGraphic property
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>6.2.5.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows (All)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>BASIC
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>fodorbalint@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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:</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>