Recent

Author Topic: (SOLVED) Modify Master Data band height where some field is empty  (Read 1944 times)

derles

  • New Member
  • *
  • Posts: 35
Hello. I have this report I build with LazReport.
In Master Data band I have 5 memos to show some dataset fields. Four of them are horizontally side by side, and the last one (field s_remarks) is below de first four, as you can see in the fig 1.
In this 5th field, s_remarks, sometimes is empty (not null, but empty string).
Running the report, the result I have is the fig.2, with empty spaces where s_remarks has no data.
I need the result like in fig.3, without empty space where s_remarks is empty string.
Is this even posibe? How can I do it ?
Please help !
« Last Edit: August 13, 2020, 02:52:54 pm by derles »

derles

  • New Member
  • *
  • Posts: 35
Re: (SOLVED) Modify Master Data band height where some field is empty
« Reply #1 on: August 13, 2020, 02:51:53 pm »
Finally I find the way. 8-)
In the MasterData1.Script:

Code: Pascal  [Select][+][-]
  1. IF ([zqDet."s_remarks"] = '') THEN
  2.    MasterData1.Height := 19
  3. ELSE
  4.    MasterData1.Height := 36;
  5.  

that do the trick.
« Last Edit: August 13, 2020, 02:53:54 pm by derles »

 

TinyPortal © 2005-2018