We help IT Professionals succeed at work.

Display an image in the form

sampa
sampa asked
on
I have a student registration form.I want to display the photograph of the student when the document is opened.
I am using Lotus Notes client.
The version for Domino is R5 release 5.0.6a
 I need to display the image along with the form
How do I associate it with the document.
Comment
Watch Question

Commented:
Is this for Web or for Notes client?
Which version of Domino?

Commented:
Please delete the second submit of the same question to avoid confusion and to get refunded your points :-)
Jean Marie GeeraertsApplication Engineer

Commented:
How are the images stored ? Are they stored as an image resource or are they part of the document ?
Please provide more info.
Create a rich text field and then import the image file into the document.

~Hemanth
Richie_SimonettiIT Operations
CERTIFIED EXPERT

Commented:
hearing...

Commented:
what do you mean when u say u want to display the photograph of the student when the document is opened ????

the choice that Hemanth gives you is good to display the picture putting it in a rich text field abd displaying it in the person document, or you want to do something else ????

explain better to get your idea !!!

giusepe

Commented:
Hello sampa,

I have a method presenting ImageResources computed on Formula basis into a Notes form.
So my question is now: where are this student pictures?
If you can import them as ImageResorces, then it would work. On open of such a student document would the coresponding student ImageResorce appear.

Regards,
zvonko

Commented:
One more: I do not do it like Memo form does with computed background image.
With my method you can place your image on the form wherever you like :-)

Author

Commented:
I have managed to do it somehow by using this formula:
@Command([EditGotoField];"photo");
@Command( [EditInsertObject])
where photo is the name of my textfield.
I have put this formula on the click of a button.

This formula opens up the embedding box where i say insert from file.
WHat I want now is that on clicking on the button it should allow me to browse through the files and select it instead of selecting the right control(u know to make it more user freindly.
I hope I am clear with what I want.
Instead you can use these commands to import the file

@Command([EditGotoField];"photo");
file := @Prompt([LOCALBROWSE]; "Image to Insert"; "3");
@Command( [FileImport] ; "JPEG Image"; file )

Richie_SimonettiIT Operations
CERTIFIED EXPERT

Commented:
Hi, some one knows how to do it with Visual Basic? (only the part of image stuff and how to create a table and populate it).
Points are allowd with "Points for..." question.
Cheers

Commented:
Richie,

your question is too short for me. I do not understand what exact is your need.
Nearly everything is with VB/LotusScript possible.

Wouldn't it be better idea to offer points and articulate exactly what your requirements are?

If nobody has an answer (that I do not believe) than you can delete your question and refund your points.

So long,
zvonko
Richie_SimonettiIT Operations
CERTIFIED EXPERT

Commented:
I used this question because it was in vein... so i haven't wait to see if somebody answer me, that's all.
If somebody answer me here, i will post a "points..." question.
What i need is insert a picture FROM an image file stored in my hard disk.
I know that we could draw tables in notes document: how do it with VB and how populate cells?
I am not interested in LS, just plain VB.
Hope i was clear.
If you think that i must post a completely new question, just say so.
Cheers
Jean Marie GeeraertsApplication Engineer

Commented:
It's always better to post a new question, that way you attract the attention of all experts, and not only the experts that participated in this question and left the notification on.

Commented:
   ...and what is for you plain VB???

Richie_SimonettiIT Operations
CERTIFIED EXPERT

Commented:
Done.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.