Recent

Author Topic: Add rectangle object in Runtime  (Read 605 times)

mig-31

  • Sr. Member
  • ****
  • Posts: 305
Add rectangle object in Runtime
« on: September 02, 2022, 12:15:13 pm »
Hi all,
my report consists of Report title, Master header, Master data and Page footer bands. I would like to add rectangle objects to  Master header, Master data in runtime, because I have a number of Report dataset (TStringGrid) with different number of collumns. I would like avoid a creation of the set of reports.  Is it possible? Any code example will be usefull.

Thank you for any suggetion.
Lazarus 2.2.6 - OpenSuse Leap 15.4, Mageia 8, CentOS 7

korba812

  • Sr. Member
  • ****
  • Posts: 394
Re: Add rectangle object in Runtime
« Reply #1 on: September 02, 2022, 12:24:51 pm »
You can use a cross table for this. LazReport package has a component that prints any DBGrid content - TfrPrintGrid.

 

TinyPortal © 2005-2018