Hi, on Windows running LibreOffice 18.104.22.168, I have many tables with file names of images stored. These file names are all relative to specific directories. In a Form, I have used a button to display these images by passing the file name to a standard Windows Photo Viewer, but I can only get this to work if I specify an absolute Windows file path e.g. C:\d\libre\vol\dir1\image.jpg In my tables I would like to specify just the file name e.g. image.jpg, or at worst dir1\image.jpg I have tried putting these images in the paths specified in tools - options - libre office - paths, but I can’t get any of them to work. I just get a message saying " “image.jpg” is not an absolute URL that can be passed to an external application to open it".
(revised question to example files)
here is a test file that shows what I am doing. As you surmised, I compile the filename in TargetURL of the button. If I compile the complete absolute address in the button, clicking on the Button opens that file. If, on the other hand, I just specify the local filename, then I get the absolute address error. I haven’t included the images, you can add any images with the appropriate names to try out the logic, and adapt any absolute pathname.testShowImage.odb