To set background

my $TextBox = $slide->Shapes->AddTextbox({ Orientation => 1, Left => 5, Top => 5, Width => 250, Height => 250 }); $TextBox->TextFrame->TextRange->{Text} ="Big Ole Test"; $TextBox->{'Fill'}{'BackColor'}{'RGB'} = 255; # 0000ff BlueGreenRed; $TextBox->{'Fill'}->Solid;

If the slide has a notes page

if ($slide->{HasNotesPage}){ my $ph = $slide->{NotesPage}{Shapes}{Placeholders}; if ($ph->{Count} >= 2){ $ph->item(2)->{TextFrame}{TextRange}{Text} = "New Comment adde +d\nline2\nline3"; print "Note added\n"; } else { print "Error - no placeholder for comment" } } else { print "No notes page\n"; } }

If a notes page does not exist then sorry I can't help further. See object model

poj

In reply to Re: Add comment to PowerPoint Win32::OLE by poj
in thread Add comment to PowerPoint Win32::OLE by IB2017

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.