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

vertically center in TppMemo

edited July 2003 in General
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.

Comments

  • edited July 2003
    Green,

    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.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.