
Determining actual row height, or setting maximum row height
The only way I've found to do this is to use the
information(wdVerticalPositionRelativeToPage) value -- for the first
position in the row, and for the first position immediately following the
row: the row height is the difference. But very messy and unreliable (the
first position following the row can be on the next page). In the end I
redesigned the task to do without this information.
Quote:
> Hi,
> I'm making an automated report generator with the Word COM
> objects 9.0 (from C#, but all object and methods matches
> those of VBA).
> Now, I would like to be able to specify a maximum height
> on a table row. Unfortunately, the only row height modes
> are auto, exact and minimum...
> To handle this, I thought I would just compare the row
> height to the maximum height, and set an absolute height
> if the row originally was too high. However, the Height
> property always returns <undefined> unless the height is
> already set, and even then it returns the set height
> (which may very well differ from the actual height).
> If anyone knows how to specify a maximum row height or how
> to measure the actual height of a table row, I would
> really appreciate the help.
> Regards
> Bent Ivar Helland