Recent

Author Topic: LazReport, how to programtically hide a subreport ?  (Read 3265 times)

Nicola Gorlandi

  • Full Member
  • ***
  • Posts: 132
LazReport, how to programtically hide a subreport ?
« on: September 08, 2018, 12:13:43 pm »
How to programtically hide a subreport ? I would like to hide a sub report under some conditions, is it possible to do it with the designer or by Lazaus code ?
Many thanks

GAN

  • Sr. Member
  • ****
  • Posts: 370
Re: LazReport, how to programtically hide a subreport ?
« Reply #1 on: September 18, 2018, 04:59:55 am »
Yes, there are some possibilities, one of this is by defining a variable in Lazreport, then use it in the subreport script to show or hide it. I never used a subreport, so I give you an example (attached) using a simple memo to hide/show this way.
Lazarus 2.0.8 FPC 3.0.4 Linux Mint Mate 19.3
Zeos 7̶.̶2̶.̶6̶ 7.1.3a-stable - Sqlite 3.32.3 - LazReport

 

TinyPortal © 2005-2018