in reply to [Win32::Ole] Ms graph in powerpoint generated file is resetted at edition

I have played a lot with ppt and Perl, but not with MSChart. Some ideas: 1) Don't you need  $graph_shape->OLEFormat->Activate; to activate the graph? Maybe ppt does it on the close; 2) (probably a silly question), but do you give each slide a different Name?

HTH, --traveler

  • Comment on Re: [Win32::Ole] Ms graph in powerpoint generated file is resetted at edition
  • Download Code

Replies are listed 'Best First'.
Re^2: [Win32::Ole] Ms graph in powerpoint generated file is resetted at edition
by nicok2 (Initiate) on Nov 25, 2004 at 09:02 UTC
    hello again,
    i tried the following things:
    - adding $graph_shape->OLEFormat->Activate; after the call to addOleObject.
    - adding a $Presentation->Close() and PptApp->Quit() at the end of the script.
    - adding a $graph_shape->Application->Quit() after a graph insertion.
    Alas it didn't change anything. i checked too if the slide have different names, theorically yes, i set the the $slide->{name} property according to an indice, but later i wasn't able to find the slide names i set in powerpoint. But I think it's ok with slide names.
    Moreover I found that if i insert 2 or 3 slides, there's always one that is ok, i can edit the values normally.

    So i investigate more, i'll post a comment if i found, but i 'm a bit pessimistic as i don't really know what is the root cause of this.