Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to print webcam picture in report?
Message
De
28/05/2003 10:30:25
 
 
À
28/05/2003 07:29:42
Napoleon Yam
Princess Cruises: Emerald Princess
Caribbean, Philippines
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00793409
Message ID:
00793503
Vues:
61
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) && this field should have a path and bmp filename
        * i.e. insured.picture may contain \profiler\images\smithjohna.bmp
	IF FILE(insured.picture) && is it valid?
		lcpicture=insured.picture  && yes, print it
        ELSE
                * print the blank.bmp which only says no picture available
                lcpicure='\profiler\images\blank.bmp' && no print 'no picture available'
	ENDIF
ELSE
        * print the blank.bmp which only says no picture available
        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"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform