Problem with FitTextToShape()

Like a couple of other people I have found that FitTextToShape() doesn’t always work. There can still be some overflow.
We are using the .NET version (2.8.9).
I have attached the resulting powerpoint as well as a screenshot of what it looks like in powerpoint.

I used the following code to generate the attached powerpoint:

Presentation pres = new Presentation();
Slide slide = pres.Slides[0];

Rectangle rect = slide.Shapes.AddRectangle(500, 500, 1000, 2000);
rect.LineFormat.ShowLines = false;

TextFrame frame = rect.AddTextFrame(“Test\rTest\rTest\rTest\rTest\rTest\rTest\rTest\rTest\rTest\rTest\rTest\rTest\rTest\rTest\rTest\rTest\rTest\rTest\rTest\rTest\rTest\rTest\rTest\r”);

frame.FitTextToShape();

pres.Write(@“C:\Temp\FitToShapeTest.ppt”);

Any suggestions??

If I’m not mistaken, that is the first report about FitTextToShape() method.
Anyway, thank you very much for this information.
We have found the bug and it will be fixed in a few days.

Any progress with this problem?

Did you try Aspose.Slides 2.9.0.0?

http://www.aspose.com/community/files/51/file-format-components/aspose.slides/default.aspx

Yes, I did try 2.9.0.0, but no difference, the problem is still present.

The bug has been fixed in next upcoming 2.9.1.0 release. You can expect it in next couple of weeks.