Create an ID template with a replaceable image

Using them, Making them , Finding them

Create an ID template with a replaceable image

Postby stra4d » Sat Oct 06, 2012 8:20 pm

I want to create a template used to store ID information. I have it setup with all the fields/text I want, and I have an image placeholder (a silhouette which will be replaced by someone's actual picture). I can't figure out how to make the image replaceable. Ideally I would like to be able to click on the image and open an dialog to select a different image. Is this possible? Alternatively, just being able to modify which image is put there would be nice. Any ideas?
OpenOffice 3.4 on Windows 7
stra4d
 
Posts: 3
Joined: Sat Oct 06, 2012 8:16 pm

Re: Create an ID template with a replaceable image

Postby Villeroy » Sat Oct 06, 2012 10:26 pm

1) A directory of picture files.
2) A database table of persons with a field of picture file names.
3) A Writer document with a form where you pick a person from a table and display the related picture file in a picture form control.

[Solved] Best Approach for Images - Store or Link?
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
User avatar
Villeroy
Volunteer
 
Posts: 29592
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Create an ID template with a replaceable image

Postby stra4d » Sun Oct 07, 2012 2:41 pm

Yes, number 3 is what I want to do. Sort of. picture can just come from a directory. How do you get an image on the form that you can replace by clicking on it. Thanks.
OpenOffice 3.4 on Windows 7
stra4d
 
Posts: 3
Joined: Sat Oct 06, 2012 8:16 pm

Re: Create an ID template with a replaceable image

Postby Villeroy » Sun Oct 07, 2012 3:32 pm

Point 3) requires 1) and 2). The database is the crucial point where you map the picture files to additional information (text, numbers, dates) and access data through forms. Then you can attach a form to an arbitrary office document. The form in my database document is a Writer document. It could be a stand-alone Writer/Calc document as well.
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
User avatar
Villeroy
Volunteer
 
Posts: 29592
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Create an ID template with a replaceable image

Postby stra4d » Mon Oct 08, 2012 6:41 pm

So you can't swap a picture without a database?
OpenOffice 3.4 on Windows 7
stra4d
 
Posts: 3
Joined: Sat Oct 06, 2012 8:16 pm

Re: Create an ID template with a replaceable image

Postby Villeroy » Mon Oct 08, 2012 10:28 pm

Databases are made for this.
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
User avatar
Villeroy
Volunteer
 
Posts: 29592
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany


Return to Templates

Who is online

Users browsing this forum: No registered users and 1 guest