in reply to Re: powerpoint problem
in thread powerpoint problem

my problem is not wid the loop, I just sent a part of my code. The main problem is I couldnt paste the ".gif" file in my PPT slide.
$pname = 'C:\Documents and Settings\Desktop\Perl_files\file.gif'; $slide->Shapes->AddOLEObject({Left=>225, Top=>125, Width=>480, Height=>320, FileName=>$pname});
It is just pasting a text "file.gif" instead of picture. So is there any way I can import the picture..??

Replies are listed 'Best First'.
Re^3: powerpoint problem
by NetWallah (Canon) on Apr 24, 2008 at 20:48 UTC
    In addition to pc88mxer's advice below, you need to use the AddPicture method (instead of AddOLEObject) to add a picture from a file.

    Thank you for using <code> tags. Perhaps you could edit your original node, and add those, to assist new readers of this thread.

         "How many times do I have to tell you again and again .. not to be repetitive?"