Azaz ul Haq
Azaz ul Haq

Reputation: 1747

Interop PowerPoint Chart Alternative

As we know inserting chart in PowerPoint presentation is quite slow and painful task using PowerPoint Interop assemblies. It not only opens up the unnecessary Excel window that we have to tackle but also it takes some considerable amount of time to completely insert the chart.

Taking care of Excel instances can be sometimes very painful task and it may lead to application crashes and slowness of PowerPoint addin itself.

So my question is: Is there any alternative(s) to PowerPoint Interop charts that can be incorporated into PowerPoint Addin.

Any feedback or suggestion would be highly appreciated.

Upvotes: 0

Views: 245

Answers (1)

Christian Sauer
Christian Sauer

Reputation: 10909

If you are prepared to go that route, you can use Office Open XML Sdk to generate the files directly. It's quite efficient to do that compared to Interop (milliseoncds vs minutes runtime...) but it is a lot of work to program.

https://learn.microsoft.com/en-us/office/open-xml/open-xml-sdk

If you want to use that, use an abstraction library with helps with the excel files, though - doing them by hand is a royal pain.

Upvotes: 0

Related Questions