T
Tom Welch
I've written a Perl script using Win32OLE to command PowerPoint to
build a presentation. I've used the following to insert a graphic
file in one of the slides:
$Slide1->Shapes->AddOLEObject({FileName=>$trend,
Left=>225,
Top=>125,
Width=>480,
Height=>320,
DisplayAsIcon=>0,
Link=>0,});
where $trend is the path to the graphic. This works fine when running
the Perl script on my desktop.
Ultimately I want to incorporate the Ppt capability in a web
based app also written is perl. The problem is when the script that
works on my desktop runs via the webserver the graphic doesn't get
inserted. Instead a small windows icon with the name of the file is
displayed. There's another method called AddPicture which
successfully inserts the graphic but the resolution of the added
picture is significantly less than when the AddOLEObject method is
used (based on desktop success).
Our IT folks have built a PowerPoint broker app that web apps
must use in order run ppt on the webserver. The idea is to avoid
having different apps all trying to run ppt at the same time.
Anyway, I suspect that my problem stems from some persmission
issue. I'm guessing that the id running the ppt process is lacking
some permission that I have when logged into my desktop pc. Maybe
there is some windows directory that must be accessed when using the
AddOLEObject method that the id of the broker does not have access to.
Our IT folks have run out of ideas to try and solve this. I sure
would appreciate some help on this.
Thanks
Tom Welch
build a presentation. I've used the following to insert a graphic
file in one of the slides:
$Slide1->Shapes->AddOLEObject({FileName=>$trend,
Left=>225,
Top=>125,
Width=>480,
Height=>320,
DisplayAsIcon=>0,
Link=>0,});
where $trend is the path to the graphic. This works fine when running
the Perl script on my desktop.
Ultimately I want to incorporate the Ppt capability in a web
based app also written is perl. The problem is when the script that
works on my desktop runs via the webserver the graphic doesn't get
inserted. Instead a small windows icon with the name of the file is
displayed. There's another method called AddPicture which
successfully inserts the graphic but the resolution of the added
picture is significantly less than when the AddOLEObject method is
used (based on desktop success).
Our IT folks have built a PowerPoint broker app that web apps
must use in order run ppt on the webserver. The idea is to avoid
having different apps all trying to run ppt at the same time.
Anyway, I suspect that my problem stems from some persmission
issue. I'm guessing that the id running the ppt process is lacking
some permission that I have when logged into my desktop pc. Maybe
there is some windows directory that must be accessed when using the
AddOLEObject method that the id of the broker does not have access to.
Our IT folks have run out of ideas to try and solve this. I sure
would appreciate some help on this.
Thanks
Tom Welch