在Powerpoint幻灯片上使用Excel图表对象

我正在创build一个用于创build图表的PowerPoint加载项。 我想知道是否可以在我的加载项中使用Excel图表而不是PowerPoint图表,因为两个图表看起来都一样,并且具有相同的图表引擎。 如果我可以那么做到这一点呢?

有两种方法。

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. 

这两种方法都有优点和缺点。 但这取决于你想要做什么。