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

Wordwrap up instead of down?

edited December 2001 in General
Is there a way to wordwrap up instead of down? This may seem like a strange
question, but consider the following report:
There are several columns. One is "Net Sales" and other is "Cumulative Net
Sales". The first column header fits on one line so I place the label at
the bottom of the header band, but the second header doesn't so I place the
label higher and turn word wrap on:

Net Sales
-----------
1
2
...

Cumulative
Net Sales
-----------
1
3
...

This works fine, but not if I want to support multiple languages. I'm
translating all the captions at run time and I have no idea how much room
"Net Sales" might take up in some other language. I would like to find some
way to make the label wordwrap up instead of down when I put in a longer
caption at runtime.

Is there any easy way to accomplish this? Has anyone else encountered this
problem before?

--
Nathan Sutcliffe
nsutcliffe@speedlinesolutions.com

Comments

  • edited December 2001

    I think you will need to calculate the width of each word and calculate
    how many lines you need. Then move the label component up/down and size
    its height.




    Best regards,

    Nard Moseley
    Digital Metaphors
    www.digital-metaphors.com
This discussion has been closed.