It is a TDBVertGridEh. In the section for the Address, I want to limit to 5 lines, which is the space I have in the report.
According to this - Font Height * RowLines + RowHeight, I need the height for 5 lines, which would be 5 * Font Height + 4 * line spacing. But I don't know the line spacing Testing, I get good results with RowHeight = 3 and RowLines = 5. But the problem is that I don't prevent the user to write more than 5 lines. It could be done by counting the number of carriage returns and removing the text from the 5th line onwards.
|