I'm having a bizarre error that I'm trying to figure out:
I have a PowerPoint template (.pptx) for a slide off in a shared drive and we always access it in code for our PPT VSTO. Inside that template, there's a slide that contains a chart. We can successfully load the template and the like and even locate the Shape.
I'm able to do the following:
Microsoft.Office.Interop.PowerPoint.Chart chart = shape.Chart; //shape corresponds to the Shape on the Slide
chart.Select(); //crashes
For some reason, every single time I try to Select the chart, it crashes with 0x800A03EC. I have absolutely no idea why.
Currently, our strategy is to store templates, load them, then access the ChartData inside of the Chart object. We have no ability to use OfficeXml, etc, because the presentation has to be opened and done in realtime. Is there, perhaps, a better way to attack this problem, or populate a chart's data?
Thanks in advance!