What I do is store the file location and name to a field in the table for each record (student) that has a picture. I add a group to the report on recno() and in the group header I add a field and put this code in it:
storepic()
Then I create the storepic function that has the code below:
IF !EMPTY(insured.picture)
IF FILE(insured.picture)
lcpicture=insured.picture
ELSE
lcpicure='\profiler\images\blank.bmp'
ENDIF
ELSE
lcpicure='\profiler\images\blank.bmp'
ENDIF
Then in the picture/activex control on the report, I choose file and enter the lcpicture variable as the picture to print.
>Hello,
>my project about the webcam and form is okay, I was able to use my webcam to take snapshots of student and was able to save the file in my hdd.
>After taking some pictures I need to print them 1 by 1 with the use of an HP or epson printer (I hope my boss will buy me one of those ID Printers), I've created a report with student ID, Lastname, Firstname and course, my problem is telling the report to get the image in a file while the form is still running co'z I used a public variable to get the basic info's, my question is how can I tell the report form to get the image from the file and be able to preview the report with the image in it?
>
>Thanks...
>
>
>Nap
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"