How can I get the real Hight of a cell or row in a word table

J

Jonathan

Hi,

I need to adjust two word tables so that row 1 in both tables has the same hight and row two in both tables has the same hight and
so on.

The reason is that after I print out the document I want make a big paper from two smaller papers (2x A4 -> 1x A3) and the rows in
both tables should appear at the same vertical position.


OK, my problem now is, that sometimes Table1.Row1 has two or three paragraphs or a picture or something else and Table2.Row1 has
other content

Now I can set both rows to an absolute size, the bigger sizer of both of them but how can I get this value??

The height property shows only 9.999.999 (for autosize) or the minimum size (cell1.HeightRule=wdRowHeightAtLeast)

But I need the current showed size in the worddocument. Then I can set the size with cell1.SetHeight(222,wdRowHeightExactly).

It seems that I need to count the paragraphs and the spaces between them but this is awful and error-prone work and If the user then
put a graphic or something else in the cell I will have bad cards...

Any Ideas??

bye
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top