Lazarus

Programming => Packages and Libraries => LazReport => Topic started by: Nicola Gorlandi on May 25, 2016, 07:02:30 am

Title: Lazreport print groupfooter at the end of the page
Post by: Nicola Gorlandi on May 25, 2016, 07:02:30 am
In order to print a band in a specific position and not always after tne previuos band e.g. the groupfooter at the end of the page, I tried a lot of ways without success, at the end I add this code

Code: Pascal  [Select][+][-]
  1.     property k6parent:TfrPage read parent;

in the   TfrBand = class(TfrObject)  public session an the in the ReportBeginBand(Band: TfrBand);  of my application I added

Code: Pascal  [Select][+][-]
  1.   if (Band.Typ = btGroupFooter) and (mainform as TMainForm).oFrame.Crpe1.FinalPass then
  2.   begin
  3.      band.k6parent.CurY:=<desidered posiztion>;
  4.   end;  

Would it be this such solution applied in the lazreport sourcecode ?
Many thanks
TinyPortal © 2005-2018