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:
If I try and run this macro in LO5.4.7.2, I get the following error (in French) : BASIC runtime error. Property or method not found : BackGraphic. So the method wasn't available then, or it was called something slightly different. I also had to correct your use of "Default Style" to "Style par défaut" in order to avoid an error on this line : oPageStyle = ThisComponent.getStyleFamilies().getByName("PageStyles").getByName("Style par défaut") In 6.1, when I run the macro with the tests at the end I get TRUE in the MsgBox. No image is inserted. I'm not a Basic expert, so can't say what is wrong with your macro when testing in my French language version of LO.
You get True in both MsgBox-es? That's even worse result than what I got, since both terms are null. Have you checked if your image's URL is correct?
Yes, I checked the image URL was correct, but I still get True for both MsgBoxes in LO6252, for example. Inevitably linked to Tomaz' changes, so adding him to CC. @Tomaz : any advice here ?
Dear Balint Fodor, To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year. There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present. If you have time, please do the following: Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/ If the bug is present, please leave a comment that includes the information from Help - About LibreOffice. If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice. Please DO NOT Update the version field Reply via email (please reply directly on the bug tracker) Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not appropriate in this case) If you want to do more to help you can test to see if your issue is a REGRESSION. To do so: 1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/ 2. Test your bug 3. Leave a comment with your results. 4a. If the bug was present with 3.3 - set version to 'inherited from OOo'; 4b. If the bug was not present in 3.3 - add 'regression' to keyword Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa Thank you for helping us make LibreOffice even better for everyone! Warm Regards, QA Team MassPing-UntouchedBug
Still present in version 7.4.7