Keeping title/data memo view components aligned

edited 12:11AM in FastReport 4.0
Hi guys, I'm having issues on a report I'm building with keeping title and data fields (both TfrxMemoView controls) aligned when one of the fields is too long and expands downwards (see attached picture). I've tried various methods of trying to change the Top property of the corresponding field when it needs to move but nothing seems to work, I've also tried a cross-tab object but couldn't get that to display properly. I could just make title and data one field but then I would lose the background colour for the title.

Any ideas as to how I can get this to display properly? I've tried adding code to align the Top properties for the title and data fields on various events from the TfrxReport object (although I don't know the order things happen so it's just guessing at this point) and I also tried adding similar code to the OnAfterData event on the TfrxMemoView controls themselves.

Many thanks,

Tim

Comments

  • edited 12:11AM
    OK I resolved the problem, I'll put my solution here in case anyone else has the same issue: I moved each row into its own child band, although because there were so many fields I had to temporarily extend the page size so I could put them all on!

Leave a Comment