[Solved] Inserting images on my Base form

Creating and using forms
Post Reply
Adi01
Posts: 2
Joined: Tue Mar 01, 2022 4:02 pm

[Solved] Inserting images on my Base form

Post by Adi01 »

Good Afternoon All,

I have this morning installed OpenOffice 4.0 and after a bit of a struggle created my database and form, but i am really stuggling with adding an image to my form, such as what type of field does the image path have to be saved as and how do I i
set up the image controls on my form. Any help would be very much appreciated ! I attach my database so far.

Many Thanks in advance

Adrian
Attachments
New Database2.odb
My Database so far...
(14.62 KiB) Downloaded 399 times
Last edited by MrProgrammer on Tue Mar 01, 2022 7:30 pm, edited 3 times in total.
Reason: Tagged ✓ [Solved] -- MrProgrammer, forum moderator
OpenOffice 4 on Windows 10
User avatar
Villeroy
Volunteer
Posts: 31323
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Help with Inserting Images onto by OpenOfficeBase Form

Post by Villeroy »

Put the database document and the pictures in the same directory. Enter the picture file names into a text field. No path required. Avoid special characters including spaces in file names. A double-click on a form's picture control opens a file picker dialog.

You may also use a query to concatenate the actual file names:
SELECT *, "PicName" || '.jpeg' AS "PicFile" FROM "Table"
or
SELECT *, 'Subdirectory/' || "PicName" || '.jpeg' AS "PicFile" FROM "Table"

See also viewtopic.php?t=33534&p=153834#p153834 with a listbox of availlable pictures imported from a file listing (still without macros).
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Adi01
Posts: 2
Joined: Tue Mar 01, 2022 4:02 pm

Re: Help with Inserting Images onto by OpenOfficeBase Form

Post by Adi01 »

Good Evening Villeroy

Brilliant, it was as simple as that !

Many Many Thanks !

Adrian
Cornwall, England
OpenOffice 4 on Windows 10
Post Reply