Adding Chart in .Net for Office2003

Dear All ,
Im trying to add Chart using this code :


Presentation pres2 = new Presentation();
Slide sld2 = pres2.Slides[0];

Im getting error here in AddChart Not found :
Aspose.Cells.Charts.Chart chart2 = sld2.Shapes.AddChart(Aspose.Cells.Charts.ChartType.BarStacked, 0, 0, 500, 500);

ErrorLog:
(Error 1 ‘Aspose.Slides.ShapeCollection’ does not contain a definition for ‘AddChart’ and no extension method ‘AddChart’ accepting a first argument of type ‘Aspose.Slides.ShapeCollection’ could be found (are you missing a using directive or an assembly reference?))

Need help plz
Regards ,
Kamel


Hi Kamel,


I have observed that you are trying to use Aspose.Cell.Charts.Chart. You need to use Aspose.Slides.Pptx.Charts.ChartEx on your end. Please visit this documentation link for your kind reference.

Many Thanks,