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
			
							[Solved] Inserting images on my Base form
							
						[Solved] Inserting images on my Base form
		
													
							
						
			
			
			
			- Attachments
 - 
			
		
		
				
- New Database2.odb
 - My Database so far...
 - (14.62 KiB) Downloaded 462 times
 
 
					Last edited by MrProgrammer on Tue Mar 01, 2022 7:30 pm, edited 3 times in total.
					
Reason: Tagged ✓ [Solved] -- MrProgrammer, forum moderator
			
						
							Reason: Tagged ✓ [Solved] -- MrProgrammer, forum moderator
OpenOffice 4 on Windows 10
			
						Re: Help with Inserting Images onto by OpenOfficeBase Form
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).
			
			
									
						
							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
			
						Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Re: Help with Inserting Images onto by OpenOfficeBase Form
Good Evening Villeroy
Brilliant, it was as simple as that !
Many Many Thanks !
Adrian
Cornwall, England
			
			
									
						
							Brilliant, it was as simple as that !
Many Many Thanks !
Adrian
Cornwall, England
OpenOffice 4 on Windows 10