I am creating a PowerPoint add-in for creating charts. I want to know if I can use a Excel chart instead of PowerPoint chart in my add-in since both the charts look same and have the same charting engine. If I can then what is the way to do this?

有帮助吗?

解决方案

There are two ways.

1. Create a chart in Excel and then use PasteSpecial to paste it in the PowerPoint slide 

2. Add an OLE object of Excel.Chart by using Shapes.AddOleObject method.

Both these methods have advantages and disadvantages. But this depends on what are you trying to do.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top