I have a Word Document of tables that I've created programmatically (using Interop). The default is I'm not specifying a row height. However, when I copy and paste these tables into Microsoft Publisher (2010), the table row spacing becomes excessive.
So, I've resorted to specifying a "Fixed Row Height" of .17" for each row height such as:
mCurrentTable.Cell(mCurrentTableRow, column).Range.ParagraphFormat.LineSpacing = 12.0f;
mCurrentTable.Cell(mCurrentTableRow, column).Range.ParagraphFormat.LineSpacingRule = Word.WdLineSpacing.wdLineSpaceExactly;
Now, when I copy and paste the table, it looks fine in Publisher.
But, my problem is that not all table rows are one line of text. Programmatically, how do I either:
1) Determine the row height (prior to setting an Exact Line Spacing) so that I can use this line spacing for an Exact measurement.
2) Determine part of the text in a row isn't visible if I set the LineSpacing to a fixed height.
In short, how do I specify a fixed row height based on how many lines of text are visible in the row?