Free Support Forum - aspose.com

AddOleObjectFrame to add a chart (in VB)

How do I add a Chart to a PowerPoint slide?

How do I build or modify byteData?

Do you have a VB example?

Do I use code like:

Dim objShape As Shape = mySlide.Shapes.AddOleObjectFrame(intLeft, intTop, intWidth, intHeight, “MSGraph.Chart”, byteData)

Thanks,
Steve

Dear Steve,

byteData is a bytes from file. For excel it will be content of .xls file. For word it’s a .doc file.
If you can’t create MSGraph files it’s better to use Excel charts.


Please check Programmer’s Guide in the Wiki for details:

http://www.aspose.com/wiki/default.aspx/Aspose.Slides/WorkingWithOLEFrame.html
http://www.aspose.com/wiki/default.aspx/Aspose.Slides/ObjectChanged.html

Dear Steve,

In case you have not been able to access the links mentioned by Alexey earlier, please try clicking on one of the above post links now, it should redirect you properly.