Conditional Bitmap in a report?

MarcieFess

Registered User.
Local time
Today, 05:21
Joined
Oct 25, 2012
Messages
107
I'm generating a report with several fields that need to be able to display the appropriate graphic depending on conditions.

What's the best way to do this? Do I create an OLE object in the report and code If/Then statements behind it, with a default graphic?

It's basically "Have amounts that require a permit?"
No
Yes

I have created 2 graphics...one with an empty box on top and a checked box on the bottom (meaning the check would appear next to the "Yes"), and one that is flipped (the check would appear next to the "No").

Some help pointing in the right direction would be really helpful.
 
Hi,

If it's just a couple of small bitmaps then it's better to embed those as OLE objects, than write your if statement in the OnFormat event of the Detail Section of the report.

If you need to use a lot of photos, then it's better linking externally to those -- attached is a small demo for that.

Regards
Melt
 

Attachments

Last edited:

Users who are viewing this thread

Back
Top Bottom