Replace a boolean field rom a ClientDataset with bitmap into Rave

Posted on 2006-04-27
Last Modified: 2010-05-18

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
 the image will be Y.bmp

How can we do that in delphi and Rave field.

Question by:Fled
    LVL 11

    Expert Comment

    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.

    LVL 11

    Expert Comment

    There should be something like the onNeedData Event of QuickReport
    LVL 4

    Accepted Solution

    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

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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
    Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    This video discusses moving either the default database or any database to a new volume.

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now