Page 1 of 1

Create an ID template with a replaceable image

PostPosted: Sat Oct 06, 2012 8:20 pm
by stra4d
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?

Re: Create an ID template with a replaceable image

PostPosted: Sat Oct 06, 2012 10:26 pm
by Villeroy
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?

Re: Create an ID template with a replaceable image

PostPosted: Sun Oct 07, 2012 2:41 pm
by stra4d
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.

Re: Create an ID template with a replaceable image

PostPosted: Sun Oct 07, 2012 3:32 pm
by Villeroy
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.

Re: Create an ID template with a replaceable image

PostPosted: Mon Oct 08, 2012 6:41 pm
by stra4d
So you can't swap a picture without a database?

Re: Create an ID template with a replaceable image

PostPosted: Mon Oct 08, 2012 10:28 pm
by Villeroy
Databases are made for this.