I'd never actually tried to do anything with it, but as a test I'd started
up the online demo and found that Slide had a Chart property that doesn't
exist in the Office 2007 downloadable demo for PowerPoint. I was going under
the assumption that it worked.
I see. I suppose the online demo might have been built from an earlier beta
release of PPT. Things change along the way, as you know.
With the Office 2007 trial and VSTO SE the Chart property is missing from
the Slide object. The Slide object does retain the HasChart property though,
which I found odd if the Chart property was to be removed permanently. I had
(again) assumed that Chart would be added (back?) in for the release version.
I think they've got a guy named Tantalus working there. He leaves little bits
like this to string us along. Evil little troll. MSGraph charts have
something similar ... a HasLinks property so you can test to see if the chart
data is linked from another source, but there's no way to get at the data or
the path to it. "Nyah nyah nyah" you can just hear it saying.
Is there no way to access charts programmatically while PowerPoint 2007 is
running? The OLEFormat property appears to be undefined with the new charts
though still works with older .ppt files.
The new charts are not OLEEmbedded objects, so they have no OLEFormat property.
The same seems true of charts in Word, by the way. No help there either. I
tried copy/pasting the chart into Excel to see if I could get at it that way
too. No joy. The chart pastes but with no data.
But here's a thought:
Save the presentation as a PPTX file
Locate the file in Windows Exploder and tack on a .ZIP extension
Doubleclick it
Burrow down to \ppt\charts\
You should find some "files" like Chart1.xml
Open one of those in a text editor and see if you like the results.