Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bitmap on a report
Message
From
01/05/1998 16:03:51
 
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00096396
Message ID:
00096400
Views:
14
>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
Edward Pikman
Independent Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform