Thanks for the response.
There is no "Update" method for the Presentation object, Slide object or
Chart object.
> Thanks for the response.
> There is no "Update" method for the Presentation object, Slide object or
> Chart object.
It's not clear what type of charts these are, but if they're MSGraph objects, the
MSGraph Application object has an Update method. Call that just before calling Quit
and you should be in good shape.
> > Hi,
> >
[quoted text clipped - 13 lines]
> > > chart's data sheet returns to default values.
> > > Any idea how to solve this problem?
-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ: www.pptfaq.com
PPTools: www.pptools.com
================================================
Sonic - 13 Sep 2006 09:27 GMT
The Chart's namespace is "Microsoft.Office.Interop.Graph.Chart".
Here is how I get the chart from the slide:
Microsoft.Office.Interop.Graph.Chart oChart =
(Microsoft.Office.Interop.Graph.Chart)ppSlide.Shapes[slideSet.ShapeIndex].OLEFormat.Object;
The "Chart" object has no "Update" method.
The data is inserted to the Chart, but the problem it disappears when
double clicking the Chart at the slide.
> > Thanks for the response.
> > There is no "Update" method for the Presentation object, Slide object or
[quoted text clipped - 27 lines]
> PPTools: www.pptools.com
> ================================================
Andy Pope - 13 Sep 2006 09:44 GMT
Have you tried
oChart.Application.Update
Cheers
Andy
> The Chart's namespace is "Microsoft.Office.Interop.Graph.Chart".
> Here is how I get the chart from the slide:
[quoted text clipped - 37 lines]
>>PPTools: www.pptools.com
>>================================================

Signature
Andy Pope, Microsoft MVP - Excel
http://www.andypope.info
Sonic - 13 Sep 2006 12:15 GMT
Problem solved.
The code line is:
"oChart.Application.Update();"
Thank you Andy and Steve.
> Have you tried
>
[quoted text clipped - 44 lines]
> >>PPTools: www.pptools.com
> >>================================================