Table Height and Row Height

I'm generating reports in pptx format. I'm not using SSRS because 2005 doesn't support RTF or HTML, so I decided to do it completely custom.

I'm adding a variable amount of text to a table in a slide, and sometimes it overflows the bottom margin of the slide. My solution is to look at the table height to determine if I need to move to another slide or not. The problem is, when I add text to a row, neither the RowEx.Height or TableEx.Height changes. Initially the row height is 12, and it stays that way even if I add alot of data to it.

When I was using the Aspose.Slides for .Net 3.1.1 version, this was working fine. I'm using the most current version now.

Please Help!

Hi Dennis,

Thanks for showing keen interest in Aspose.Slides.

I have been able to verify yours specified issue and found that table height/width property is not working properly, when dealing with PPTX. An issue with issue id 14226 has been created on our Issue Tracking System to fix the problem. This thread has been associated with this issue, so that you can be automatically notified as soon as this issue is resolved.

Thanks and Regards,

When should I expect a fix? I’m not trying to rush you guys, I just need to know if I need to come up with an alternate solution

Hi Dennis,

Thanks for showing keen interest in Aspose.Slides.

When should I expect a fix?

I have talked to the development team about the availability of the feature and it will be available tentatively after first quarter. We apologize for the delay.

I’m generating reports in PPTX format.
I’m not using SSRS because 2005 doesn’t support RTF or HTML, so I decided to do it completely custom.

The SSRS 2005 doesn’t support RTF or HTML but Aspose.Words for RS supports it. So in my humble suggestion, you can use both Aspose.Words for RS and Aspose.Slides for RS.

Thanks and Regards,

I need to have rich text in the powerpoint slides. How would Aspose.Words help me with that?

Hi Dennis,

Unfortuantley, the Rich Text property is not supported in Aspose.Slides. In order to format your text you can format it using paragraphs and portions as usual. Aspose.Words may not help you in this regard.

We are sorry for your inconvenience,

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?

Hi Jaakko,

Thanks for showing interest in Aspose.Slides.

You are very right in making your point that TableEx.Height always returns same value, no matter what the actual value of height actually is. As mentioned in earlier post that an issue with ID 14226 has been created in our issue tracking system for the resolution of issue. As soon as issue is resolved, you will be automatically notified.

We are sorry for your inconvenience,

Hi,

Are there any updates on issue 14226? I am also trying to use table height and or row height and they are not being refreshed as text is added to the cells or as rows are removed from the table.

Thanks,

Ana

Dear Ana,

I regret to inform you that unfortunately, the issue specified has not yet been resolved. I have requested the development team to share any possible ETA for the issue. As soon as some response is shared by them, I will be obliged to share that with you.

We are sorry for your inconvenience,

Mudassir,

Thanks for your response. Is there any work around or any other properties I could use to determine the table row positions. I am trying to determine if I the table is too long for the slide height so that it needs to continue rendering in a new slide.

Thanks,

Ana

Dear Ana,

I regret to share that unfortunately there is no work around method available to measure the table width and height. Actually, the table height is sum of all the rows. So, you may add the height of individual row cells to get the height of table. Similarly, the sum of all columns width corresponds to table width. So, you can take sum of rows heights and column widths to calculate table height and width respectively. I am not sure whether it will completely help you out, but you may try using this option.

Thanks and Regards,

Is access to your Issue tracking system public? That is, could we have a link to the issue (14226) so we can monitor its progress?

Thanks,
Chadwick

Dear Chadwick,

I regret to share that the access to our issue tracking system is not public and unfortunately, cannot observe the issue progress.

We are sorry for your inconvenience,

Hi,

I'm facing same problem. What is the status of the issue? Is there any other work around to calculate table height?

Regards
Manish

Hi Manish,

I regret to share that issue of getting Table height has not yet been resolved in Aspose.Slides for .NET and has already been added in our issue tracking system with ID 14226. Actually, TableEx width is a sum of widths of all columns. Table height is a sum of heights of all rows which are max of RowEx.MinimalHeight and height of content. Powerpoint ignores a width and height, written in file, Aspose.Slides returns these values. Our development team is already looking in to this issue and once any update is shared, I will share that with you.

We are sorry for your inconvenience,

The issues you have found earlier (filed as 14226) have been fixed in this update .


This message was posted using Notification2Forum from Downloads module by aspose.notifier.

Hi!
With Aspose Slides version 2.7.0 for Java I’m also facing this issue.
The row heights of a TableEx object won’t update their values, even if you put a lot of text into them.
Is there any other way to measure the height of a row regarding the text height inside it?

Thx in advance,
Christiane

The issues you have found earlier (filed as SLIDESNET-14226) have been fixed in this update.


This message was posted using Notification2Forum from Downloads module by aspose.notifier.
(1)