Good morning
Thank you for delivering the functionality for sizing text holders and frames as promised.
My generated presentations are looking quite good now, my boss is happier, but I do still have one problem.
I think I am doing something wrong, if so please let me know.
In your 2.1.4.0 hotfix you mentioned about table cells resizing to the text. I have problems getting the size out of table
and cells.
Here is part of my code (somewhat simplified)
{
// Load up the table and get the cells
int rowCount = 4;
int columnCount = 4;
Slide slide = GetSlideNumber(myCurrentSlideNumber);
if (slide != null)
{
// now create the Aspose Powerpoint Table
Aspose.PowerPoint.Table outputTable =
slide.Shapes.AddTable(
100, 100, 100, 100,
columnCount, rowCount);
// Transfer data and properties from our format to Aspose.Powerpoint
for (int row = 0; row < rowCount; row++)
{
for (int col = 0; col < columnCount; col++)
{
// logic removed to keep it simple
Portion testPortion = new Portion("This needs to fit");
Aspose.PowerPoint.Cell aCell = outputTable.GetCell(col, row);
aCell.TextFrame.Paragraphs[0].Portions.Add(testPortion);
}
}
}
}.
The text is not legible because the cells are not sized properly. What I need is to work out how big this table
is so that I can resize it if necessary, but more importantly, I need to create other shapes directly below this.
Obviously the startpos of 100 is just for illustration, and the width and height of 100 is because I do not know how big
the table will be after inserting all the text.
I need to create additional pictures or tabled below this table, so I need this table to resize, and to work out how big it ended up being..
I've checked a multitude of width and height, but I cannot find any that make sense.
Thanks
cwad