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

Printed Control by Record

edited October 2005 in General
Hi,
I have a invoice system and I want to control only printed records.. if 1#
record printed in grid it can be red for example.. I am printing report
randomly for example 13# and 26# that means in grid only 13# and 26# must be
red..
Thanks

Comments

  • edited October 2005
    hi any body can solve my problem ??


  • edited October 2005
    Hi,

    Depending on the condition that makes a record red, you can use the
    DetailBand.BeforePrint event to check this condition and change the color of
    the text component if needed. For instance...

    if ppReport1.DataPipeline['AmountPaid'] = 0 then
    ppDBText1.Color := clRed
    else
    ppDBText1.Color := clBlack;

    --
    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.