While bulding PowerPoint slides I'm making use of the Height attribute of the TextBoxes on the slide to determine when it's time to start a new slide.
$TextBox = ${'Slide_'.$slideNumber}->Shapes->AddTextbox({Orientati
+on=>1,Left=>80,Top=>$bulletYPos,Width=>600,Height=>20,});
$TextBox->TextFrame->TextRange->{Text} = 'blah blah blah';
$TextBoxHeight = $TextBox->Height;
This works great until I start a second slide. It seems that PowerPoint needs to be told what the active slide is in order to get the correct value returned from Height. My question is how do I tell PowerPoint to activeate the latest created slide. When the presentation is being built I can watch the slides being created in PowerPoint but even as additional slides are being added, PowerPoint continues to display slide 1 until I do a page down or make a selection from the slide sorter. I recorded a macro to see what happens when a different slide is selected but the macro was blank. I tried some other things like
${'Slide_'.$slideNumber}->ActivateWindow();
and
${'Slide_'.$slideNumber}->ActiveWindow();
but neither worked.
Thanks.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.