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

changing labels in code that are part of DetailBand

edited August 2004 in General
I am using Delphi 7 with reportbuilder pro 7.03

I have a query running that populates my report...what I need to do, is
figure out a way so that if a field in the query is a certain letter, then
my code will set a label on my report to the long description of it.
I've tried doing this, and it just sets all of them to the first records
letter, rather than continuing through each record...
Any help available out there?

--Brandie

******************************************
Brandie VanNort
Computer Services Administrator
Ebby Halliday, Realtors
Dallas, Texas
http://www.ebbyhalliday.com
Phil 4:13 "I can do all things through
Christ who strengthens me"
******************************************

Comments

  • edited August 2004
    Hi Brandie,

    It looks as though you may not have your report connected to the proper
    datapipeline. A report in ReportBuilder will only traverse a single dataset
    (connected to a pipeline) that you select. Click the Report | Data option
    in the designers main menu and be sure your main report is connected to the
    right pipeline.

    Also, which event are you setting this text? I would suggest using the
    DetailBand.BeforePrint event to check the letter field and update the
    Label's text accordingly.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited August 2004
    Hey Nico, thanks...I DID have a pipeline connected to it...
    It was the DetailBand.BeforePrint event that worked for me...thanks so much
    for the assistance.

    --Brandie

    ******************************************
    Brandie VanNort
    Computer Services Administrator
    Ebby Halliday, Realtors
    Dallas, Texas
    http://www.ebbyhalliday.com
    Phil 4:13 "I can do all things through
    Christ who strengthens me"
    ******************************************

This discussion has been closed.