Home End User

Mimicking Green Bar

edited December 2012 in End User
?I've got the Green Bar in place but I can't get it to be visible on
every third line.



JTWJ

--- posted by geoForum on http://www.newswhat.com

Comments

  • edited December 2012
    The green bar feature only supports every other line. You can mimic
    this behavior using a shape and toggling its visibility in the
    Band.BeforePrint event.

    procedure TForm1.ppDetailBand1BeforePrint(Sender: TObject);
    begin
    if ppDetailBand1.Count mod 3 = 0 then
    ppShape1.Visible := True
    else
    ppShape1.Visible := False;
    end;

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2012
    We are using the Front End ( End User ) where the user creates his own
    report where there is not any procedure TForm1. and there is not any
    (Sender: Tobject);

  • edited December 2012
    This could also be done from RAP using the Enterprise edition of
    ReportBuilder. Otherwise, this would have to be custom behavior that
    you add manually.

    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited December 2012
    Yes I guess I am calling the RAP as the End User side.

    I figured it out. I put a dbCalc on the detail line and used the Count
    property.

    But there is something odd. I had to use:
    GreenBar.Visible := dbCalc.Value Mod 3 = 2;
    instead of:
    GreenBar.Visible := dbCalc.Value Mod 3 = 0;
    in order to get the desired effect.

    It seems the dbCalc gets it's true value after the Detail Band Before
    Print fires.

This discussion has been closed.