In FastReport4, How to align 3 memo lines vertically where if the 2nd memo line is empty the remaining 2 can be align togather automatically?

StackOverflow https://stackoverflow.com/questions/16250702

質問

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.

Fig-1 Fig-2 Fig-3

役に立ちましたか?

解決

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;
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top