Recent

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

Nicola Gorlandi

  • Jr. Member
  • **
  • Posts: 80
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

  • Full Member
  • ***
  • Posts: 232
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 1.8.4 FPC 3.0.4 Linux Mint Mate 17.2 x86_64 GTK-2
Zeos 7.1.3 - Sqlite 3.8.2

Foro Lazarus en español http://forum.lazarus.freepascal.org/index.php/board,73.0.html