Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

MsoAutoSizeTextToFitShape with COM Powerpoint

Creating ppts with PHP



8:49 pm on May 5, 2009 (gmt 0)

10+ Year Member

Hi guys,

I'm trying to make this work for the last few hours but I can't get it to work ... argh!

I've got a php script which creates ppt presentations. For some of the ppts the text does not fit in the textbox. I would like to use the AutoSizeTextToFitShape feature but it doesn't work. Could someone help me please? This is the last code I tried:

$pres->Slides[$a]->Shapes->Item(2)->TextFrame2->AutoSize = msoAutoSizeTextToFitShape;


5:51 am on May 6, 2009 (gmt 0)

10+ Year Member

someone familiar with this problem ?

Featured Threads

Hot Threads This Week

Hot Threads This Month