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

Printing different flavour of detail bands-basic question

edited January 2003 in General
Hi,

Printing a failry basic report, one row in a tbale = one detail band. Now
want to introduce different flavoured rows, the first(original) reuires one
line and second flavour requires two lines with additional data items.

What is easiest way of achieving this .

Cheers

Tony Peppercorn

Comments

  • edited January 2003
    I should add that each detail line is either one flavour or the other.

  • edited January 2003
    The easiest approach is to use two regions. The region component is similar
    to a TPanel, because it "parents" the controls in it. Place the different
    controls for each flavor in the separate regions. Then control them by
    setting the region's visibility in the Detailband.BeforePrint event. (Be
    sure to reset them to visible false/true in the 'else' of the 'if then'
    statement). To make sure the components are parented by the region, drag the
    region araound in the designer- the components should move with it. To place
    a component in a region, just drag the component into the region's boxed
    area.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited January 2003
    Great Jim, thanks very much

    Regards

    Tony
This discussion has been closed.