Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

How do I get the height of a populated MEMO field?

edited January 2002 in General
How do I get the height of a populated MEMO field?
====================================
I have a Memo field printing in a group header. I want to paint a box
(TppShape) around it. In order to do so, I need to gather the height of the
Memo field.

ppMemoNotes.Lines.Clear;
ppMemoNotes.Lines.Add('Hello World');
ppShapeNotesBox.Height := ppMemoNotes.Height;
ppMemoNotes.Lines.Clear;
ppMemoNotes.Lines.Add(OraDS1.FieldByName('NOTE').AsString);//
Results in about 20 lines of text
ppShapeNotesBox.Height := ppMemoNotes.Height;

Regardless of when I look at ppShapeNotesBox.Height, it is set at 0.13.....
It appears not to be set based on the contents of the memo field.

What do I need to do to determine the true height of a memo field once it
has been populated.

Joe Bibbo
joe@computrition.com

Comments

This discussion has been closed.