Free Support Forum - aspose.com

Creating Excel Chart and Embedding it in Presentation as OLE Object

I using Aspose.slides and want to embed graph on a slide. I tried using your VB.Net example (same as Subject of this question). I am working in Visual Web Developer 2008 Express Edition.

For impors I have Imports Microsoft.Office.Interop.Excel

The following line in Shared Sub Run()

wb.Worksheets.SetOleSize(0, chartRows, 0, chartCols)

gives me an error: "SetOleSize is not a member of Microsoft.Office.Interop.Excel

I get a similar error in function AddExcelChartInWorkbook for the line

wb.Worksheets.ActiveSheetIndex = chartSheetIdx

Any suggestions would be appreciated.

Tom


This message was posted using Page2Forum from Creating Excel Chart and Embedding it in Presentation as OLE... - Aspose.Slides for .NET

No need to answer. I realize that I need Aspose.cells in addition to Aspose.slides. Now everything works fine.

Hi Tom,

Congratualtions. You solved the problem by yourself.