Recent

Author Topic: Autosizing memo fields in lazReport  (Read 3798 times)

JanRoza

  • Hero Member
  • *****
  • Posts: 579
    • http://www.silentwings.nl
Autosizing memo fields in lazReport
« on: January 21, 2015, 01:45:33 pm »
Hi,

In a report I have two memo fields that can contain more than one line of data, so I set autosize=true and stretched=true for both memo fields.
Unfortunately the report still shows only 1 line of text for these memos.
As suggested in an old post I resized both memo fields two a height bigger than two lines of data, but even then it doesn't work.
Does anyone has a solution for this problem or is this a bug in lazReport?
Thanks.
OS: Windows 10 (64 bit) / Linux Mint (64 bit)
Laz: Lazarus 2.0.10 FPC 3.2.0
       CodeTyphon 7.2 FPC 3.3.1

Apoxest

  • Newbie
  • Posts: 1
Re: Autosizing memo fields in lazReport
« Reply #1 on: April 26, 2015, 11:01:05 pm »
Hi,

Did not see a posting to help you. Try right clicking on the band and click stretched. Was looking for the answer and run numerous tests to try different options.

Note: In my program, I found that the memo line length was equal to the memo line in the first record for all subsequent records.  The next test involved putting a long line of spaces, seemed to help the line length (system removed the extra spaces tho). However, not a good solution for an end user. Still working on it.

JanRoza

  • Hero Member
  • *****
  • Posts: 579
    • http://www.silentwings.nl
Re: Autosizing memo fields in lazReport
« Reply #2 on: April 27, 2015, 02:08:13 pm »
Thanks, but I already found it and the report does what I want it to do.
OS: Windows 10 (64 bit) / Linux Mint (64 bit)
Laz: Lazarus 2.0.10 FPC 3.2.0
       CodeTyphon 7.2 FPC 3.3.1

Graeme

  • Hero Member
  • *****
  • Posts: 1430
    • Graeme on the web
Re: Autosizing memo fields in lazReport
« Reply #3 on: June 30, 2015, 01:52:12 pm »
Many thanks Apoxest. Just the information I was looking for.
--
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://fpgui.sourceforge.net/

 

TinyPortal © 2005-2018