vertically center in TppMemo
I am using TppMemo for column header titles to allow for multiple line
headers.
My problem is in trying to center the TppMemo vertically within the header
cell.
The report looks like this:
| -----------------|----------------------------------------
| header line1 | headerline1
| header line 2 |
| header line 3 |
| -----------------| ---------------------------------------
But it should look like this:
| -----------------|----------------------------------------
| header line1 |
| header line 2 | headerline1
| header line 3 |
| -----------------| ---------------------------------------
I have tried adjusting the position of the TppMemo during runtime, but I
couldn't get the actually printing height of the TppMemo.
headers.
My problem is in trying to center the TppMemo vertically within the header
cell.
The report looks like this:
| -----------------|----------------------------------------
| header line1 | headerline1
| header line 2 |
| header line 3 |
| -----------------| ---------------------------------------
But it should look like this:
| -----------------|----------------------------------------
| header line1 |
| header line 2 | headerline1
| header line 3 |
| -----------------| ---------------------------------------
I have tried adjusting the position of the TppMemo during runtime, but I
couldn't get the actually printing height of the TppMemo.
This discussion has been closed.
Comments
You will need to figure out the height of the memo on the left and use that
value to calculate the position of the memo on the right. You should be
able to calculate the memo height in the Report.BeforePrint event by
accessing the TppMemo.Height property.
--
Nico Cizik
Digital Metaphors
http://www.digital-metaphors.com