Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

RunTime Reports

edited April 2006 in General
Sorry by my poor english

My APP brings data from Interbase Database. A field is Char(1) type with
allowed values: "T", "F".
I need that end user can apply mask to data, when design report at runtime,
to see others values when printing, "T" = "SI", "F" = "NO".

There are something like this:

IF (Table.Field[0].AsString = 'T', 'SI', 'NO')

regards

Comments

  • edited April 2006
    Hi,

    You could try using the DetailBand.BeforePrint event to check the value of
    the field and set the value of a text object based on that information.
    Something like the following...


    lsValue := ppReport.DataPipeline['FieldName'];

    if lsValue = 'T' then
    ppLabel.Text := 'SI'
    else
    ppLabel.Text := 'NO';

    --
    Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.