>>>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".
>
Report contains function name only, function itself is part of system procedure file.
Edward Pikman
Independent Consultant