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

Shifting / Invisibility

edited March 2003 in General
Hello -

Is there a way to make part of a detail area shift up to take over the space
left by a detail line that was made invisible? Thanks for any help.

David Kilmer

Comments

  • edited March 2003
    Yes, use the DetailBand.BeforePrint event to set the visibilty of the detail
    band. It works in tests here. I used RAP, but here is the code. Basically, I
    create a table dump of the DBDemos Biolife table in a simple report that
    only had a DBText in the detail band. Biolife is the name of my pipeline:

    if (Biolife['Common_Name'] = 'Firefish') then
    begin

    Detail.Visible := False;
    DBText1.Font.Color := clRed;

    end

    else
    begin

    Detail.Visible := True;
    DBText1.Font.Color := clBlue;

    end;

    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.