Thanks huakex - the color thing worked great. It gives me the syntax and approach I need to get more things to work (like line thickness and so on). There is already in the Win32::PowerPoint::Utils a subroutine for RGB .. so I'll try to use that.

However, I'm struggling with the shape still. There is a module for Win32::PowerPoint::Const - but it does not include all the msoShape* items I want to use. In the constants module there are some definitions (I think Microsoft calls them Enumerations - MsoAutoShapeType enumeration (Office) - but whatever) but none for the shapes:

# msoPatternType msoPattern10Percent => 2, msoPattern20Percent => 3, msoPattern25Percent => 4,
So I'm going to try to extend that module to include the definitions I found in MSDN for the shapes like this:
# msoAutoShapeType msoShapeRectangle => 1, msoShapeParallelogram => 2, msoShapeTrapezoid => 3,
And use them ... as the Win32::OLE::Const->Load('Microsoft Office 12.0 Object Library'); I could not determine which Office to load as I've got 365 from work and the documentation is poor. Why Microsoft has to be so obtuse about everything is beyond me, but I digress.

Thanks for your help. It's appreciated. If anyone else has any ideas - please add them - always welcome!!!

One more thing ... after I add these other functions, I want to update the original Win32::PowerPoint module (and sub modules) back in CPAN as opposed to adding a new module cloned and forked from the original - so any pointers on how to start down that path would be very helpful.


In reply to Re^2: Win32::PowerPoint Extension for Lines and Shapes (updated) by nzsvz9
in thread Win32::PowerPoint Extension for Lines and Shapes by nzsvz9

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.