tewelch has asked for the wisdom of the Perl Monks concerning the following question:

Using this code:
$Slide->Shapes->AddOLEObject({Left=>225, Top=>125, Width=>480, Height=>320, FileName=>'D:/My Documents/TecView/win32 ole/trend.png',});
I can insert a png file into my ppt file when running the script in the perl environment on my desktop pc. The inserted png file is displayed just as I hoped it would be. However, when I run the same script on our web server via a url in Netscape (with the path to the png file adjusted to the web server directory structure), the generated ppt file displays only an icon with the file name. I can't get it to display the actual contents of the png file. Could there be a difference in the way PowerPoint for Win2K server behaves as opposed to how it behaves on a Win2K desktop? Has anyone else experienced this ? Is there a solution ?

Similarly, when attempting to insert an Excel spreadsheet, I get the message:
AddOLEObject : The source application is busy and can't respond immediately. You can switch to the other application and try to resolve the problem"

Any ideas ?

Replies are listed 'Best First'.
Re: Win32::OLE - Insert Object in PowerPoint
by boo_radley (Parson) on Oct 30, 2003 at 16:07 UTC

    It sound like you're creating a link to the file, not embedding it. If you move/delete the png, does the ppt file created on your desktop pc show the filename icon?

    looking at the documentation for AddOLEObject, you might try setting link to false, or 0 or MSO_BOOLEAN_FALSE, or whatever it is that PPT expects false to be.

      I tried setting the link to msoFalse but that had no effect. On my desktop system, I deleted the files that were inserted into the powerpoint file but when I opened the ppt file the inserted files were still displayed. Thanks anyway.
Re: Win32::OLE - Insert Object in PowerPoint
by traveler (Parson) on Oct 30, 2003 at 16:58 UTC
    Could it be a permissions problem? Give Everyone Full Control on the png and see if that fixes it.

    HTH, --traveler