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

Changing Variables in the title band?

edited October 2001 in General
I have three variables in a title band of a report that I need to
change. One is total number sold, one is total new sold and one is
total used sold. What's the best way to go about changing these as
the report prints? This is a state dictated report so the layout can
not be changed.

David

Comments

  • edited October 2001
    Use the variable's OnCalc event.

    If the data is coming from a pipeline, then you should use a dbCalc
    component, which has its dbCalcType property set to dcSum. It will
    automatically total the value for you as the report prints. You'll need to
    set the report.PassSetting to psTwoPass and set the dbCalc's LookAhead
    property to True.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.