Determining actual row height, or setting maximum row height 
Author Message
 Determining actual row height, or setting maximum row height

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



Mon, 04 Apr 2005 13:38:04 GMT  
 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



Mon, 04 Apr 2005 14:23:21 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. row heights of table rows added by vba

2. MSFlexGrid and Determining Row Height

3. DBGrid - Change the row height of ALL rows to be double the default height?

4. Setting form width/height = image width/height

5. Help: Can't set form height greater than screen height

6. Set TextBox Height = Grid Cell Height Fails

7. Row and table heights

8. DataGrid Header Row Height

9. Datagrid row height

10. DataGrid Row Height

11. windows.forms.datagrid sorting and row height

12. hardcoding row or cells height

 

 
Powered by phpBB® Forum Software