Recent

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

mig-31

  • Sr. Member
  • ****
  • Posts: 299
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.0.6 - CentOS 7.x, Mageia 7.1

korba812

  • Sr. Member
  • ****
  • Posts: 307
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