Anything new about this? I'm also trying to create tables with varying cell heights with Slides for .NET. My code with PowerPoint 2003 works somewhat like this:
Table table = (Table) slide.Shapes[i];
while (dataLeft())
{
table.AddRow();
table.GetCell(0, table.RowsNumber - 1).TextFrame.Text = nextCell(); // nextCell might contain linefeeds
if (table.Height > maxHeight)
{
table.DeleteRow(table.RowsNumber - 1);
// Clone a new slide here
table = (Table) slide.Shapes[i];
pushDataBack();
}
}
now, this works with PowerPoint 2003 format, but not with PowerPoint 2007 - table.Height returns the same value, no matter what the "real" height of the table is because of the multi-line cell. There seems to be no equivalent to TextFrame.FitShapeToText in the PowerPoint 2007 API, am I right?