New Blog Post: PDF/A and Metadata

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.


--- posted by geoForum on


  • 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);
    if ppDetailBand1.Count mod 3 = 0 then
    ppShape1.Visible := True
    ppShape1.Visible := False;

    Best Regards,

    Nico Cizik
    Digital Metaphors
  • 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
  • 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

    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.