One possibility is that you didn't actually turn on wrap. Supplying
minimal executable code that demonstrates the alleged problem is always
a very good idea -- it saves you being asked things like "how did you
attempt to turn on wrap" and saves answerers from having to type in
extra glue code.
It appears that to get any visual effect of a change to row height, you
need to set the height_mismatch flag on the row. However, fiddling with
the row height is pointless. You need to set the column widths to
whatever you want. Excel adjusts the row height to accomodate the
tallest cell. For example, open a new sheet, and type "The quick brown
fox", "waffle waffle" and "Now is the winter of our discontent made
glorious summer by this son of York" into cells A1, B1, and C1
respectively. Then select A1 and C1 and go Format/Cells/Alignment, tick
the "Wrap text" box, and click OK. You should see that row 1 is resized
from 1 line to the 8 lines required for C1.
I've attached some sample code that might give you some ideas. Note that
working out what column width you need to use requires guesswork and
calibration. Do let us know how you get on.
Cheers,
John
Have you tried to do this auto-resizing of a merged cell region using
the Excel / OOo Calc / Gnumeric UI? If so, please list the actions
required. If not, ...
AND (again) please supply the minimum executable code that is attempting
to achieve your goal but isn't.