Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bitmap on a report
Message
 
À
01/05/1998 16:03:51
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00096396
Message ID:
00096427
Vues:
19
>>I am using VFP 3.0B for Windows.
>>
>>I have a bitmap image of each of our patients in our database. I would like to print this image out with demographic data in a report. I am stuck for how to do this. The image/ole control (in the report editor) does not seem to have properties like that of its sister control for forms.
>>
>>I store each patients bitmap in its own file with a unique name. In a form I can display the bitmap for a given patient by setting the "picture" property of the image control.
>>
>>How does one do this for a report? The image control in the report seem to only be for things that are static (like company logos) and not dynamic (like patient data).
>>
>>Any ideas?
>
>Add 'Report Picture' field and type GetBMPFile() in 'Picture from file' dialog. GetBMPFile() is your function which will return path+file name of appropriate bitmap:
>
>function getbmpfile()
>if id>3
>	return "d:\vfp5\fox.bmp"
>else
>	return "c:\cuerun\bmi_cue.bmp"
>endif	
>endfunc
>
Sorry to bother you Ed. Where do you put the function in a report? I usually put code in the init method of the dataenvironment, but when I put a function in there I get an error "Methods and Events can contain nested procedures or class definitions".

Thanks so far.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform