• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 531
  • Last Modified:

Replace a boolean field rom a ClientDataset with bitmap into Rave

Hi,

I try to change a boolean field from my dataset into a bitmap on my rave report ... ex:

If the field is true, the image will be X.bmp
else
 the image will be Y.bmp

How can we do that in delphi and Rave field.

Thanks.
0
Fled
Asked:
Fled
  • 2
1 Solution
 
calinutzCommented:
You could try using the fill event of the rave report... I don't remember exactly what the events are there (I don't have Delphi here) but it should be something like onGetRow I think.
So use the event to place the if statement there.

regards
0
 
calinutzCommented:
There should be something like the onNeedData Event of QuickReport
0
 
JDSkinnerCommented:
Or
Low tech approach

if (Query.fieldvalues['bVar'] = true) then <load bitmapA to datafield used by Rave.bitmap>
else <load bitmapB to datafield  used by Rave.bitmap> ;

with RvProject1 do
    ExecuteReport('<ReportName>');
end;

Then you have no changes to make at the Rave Project end.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now