Reputation: 1189
Using FastReport4 in Delphi XE3.
I have 3 Memo fields as it shown in Fig-1, I want if one of the fields is empty they can automatically align vertically, but my problem is lets say if memo2 is empty I get what's in Fig-2 an empty space between memo1 and memo3, I've tried stretching, shifting modes with no use, I want it to be as Fig-3, So any idea how to do it?
Thanks.
Upvotes: 1
Views: 1415
Reputation: 62
You must examine that is the Memo empty or not using below code in Delphi in before print event:
if TfrxMemoView(frxReport.FindObject('Memo2')).Text = '' then
TfrxMemoView(frxReport.FindObject('Memo3')).Top := TfrxMemoView(frxReport.FindObject('Memo2')).Top;
Upvotes: 2