Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Bitmap on a report
Message
De
03/05/1998 04:27:16
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00096396
Message ID:
00096577
Vues:
17
>>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".

The function should be somewhere in the program which calls the report (good ole FP) or in a separate .prg, unless you find a way to add new method to a report (no way that I know of).

Easier solution: if your patient's record contains the picture's filename in some field, use that field name instead of this function, just put parentheses around it or just make sure there are no quotes around it. Use expression builder instead of file selector.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform