Autonumber

Feb 9, 2011 at 7:38 AM

Hi, 

A very interesting feature would be to have the ability to ad an autonumber on each slide (via Master).

Thank you again.

 

Laurent

Mar 16, 2011 at 3:12 PM

 

I solved this by starting a variable at the top of my script called $pageCount=0;

Then on each slide, I made a textRun for the page number, using the usual controls so that is positioned in the lower left and did this;

$pageCount++;
$textRun=$shape->createTextRun($pageCount);

Those two lines (plus layout formatting lines like offset and height and width for this textRun) goes on the bottom of each new slide as my last text run...

Now even my dynamically loop generated slides get the right page number every time...

Hope this simple idea helps...

Mar 16, 2011 at 3:24 PM

Hum, thank you corkyk. I had the same idea but most of the time my final file needs to be rearranged (add, delete some slides) and then all the numbers are wrong...

In my case, that's even a worse solution because we have 150 slides and we need to delete these false autonumbers before inserting in Powerpoint a real autonumber for all slides.

But thank you!

 

Laurent

Mar 16, 2011 at 3:54 PM

Sorry it didn't work out.

I am having enough trouble with my own dynamically generated show to help much more LOL :)

Best of luck!

-Corky K.